|
|
@ -5,7 +5,6 @@ class Person
|
|
|
|
|
|
|
|
|
|
|
|
def initialize(id:, git:, contact: Contact.new)
|
|
|
|
def initialize(id:, git:, contact: Contact.new)
|
|
|
|
validate_id(id)
|
|
|
|
validate_id(id)
|
|
|
|
validate_git(git)
|
|
|
|
|
|
|
|
validate_contact(contact)
|
|
|
|
validate_contact(contact)
|
|
|
|
|
|
|
|
|
|
|
|
@id = id
|
|
|
|
@id = id
|
|
|
@ -33,6 +32,11 @@ class Person
|
|
|
|
id.is_a?(String) && !id.strip.empty?
|
|
|
|
id.is_a?(String) && !id.strip.empty?
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def git=(git)
|
|
|
|
|
|
|
|
validate_git(git)
|
|
|
|
|
|
|
|
@git = git
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
private
|
|
|
|
private
|
|
|
|
|
|
|
|
|
|
|
|
def validate_id(id)
|
|
|
|
def validate_id(id)
|
|
|
|