Class: Person

Inherits:
Object
  • Object
show all
Defined in:
lib/models/person/person.rb

Direct Known Subclasses

Student, Student_short

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#gitObject

Returns the value of attribute git.



2
3
4
# File 'lib/models/person/person.rb', line 2

def git
  @git
end

#idObject (readonly)

Returns the value of attribute id.



2
3
4
# File 'lib/models/person/person.rb', line 2

def id
  @id
end

Instance Method Details

#validate?Boolean

validate git

Returns:

  • (Boolean)


10
11
12
# File 'lib/models/person/person.rb', line 10

def validate?
    self.validate_git?
end

#validate_git?Boolean

checking for git availability

Returns:

  • (Boolean)


5
6
7
# File 'lib/models/person/person.rb', line 5

def validate_git?
    !self.git.nil?
end