Class: Person
- Inherits:
-
Object
- Object
- Person
- Defined in:
- lib/models/person/person.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#git ⇒ Object
readonly
Returns the value of attribute git.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
-
#validate? ⇒ Boolean
validate git.
-
#validate_git? ⇒ Boolean
checking for git availability.
Instance Attribute Details
#git ⇒ Object
Returns the value of attribute git.
2 3 4 |
# File 'lib/models/person/person.rb', line 2 def git @git end |
#id ⇒ Object (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
10 11 12 |
# File 'lib/models/person/person.rb', line 10 def validate? self.validate_git? end |
#validate_git? ⇒ Boolean
checking for git availability
5 6 7 |
# File 'lib/models/person/person.rb', line 5 def validate_git? !self.git.nil? end |