Class: PivotalAPI::Person
- Defined in:
- lib/pivotal-tracker-api/person.rb
Instance Attribute Summary collapse
-
#email ⇒ Object
Returns the value of attribute email.
-
#id ⇒ Object
Returns the value of attribute id.
-
#initials ⇒ Object
Returns the value of attribute initials.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#name ⇒ Object
Returns the value of attribute name.
-
#username ⇒ Object
Returns the value of attribute username.
Class Method Summary collapse
Methods inherited from Base
from_json, #initialize, #to_json
Constructor Details
This class inherits a constructor from PivotalAPI::Base
Instance Attribute Details
#email ⇒ Object
Returns the value of attribute email.
4 5 6 |
# File 'lib/pivotal-tracker-api/person.rb', line 4 def email @email end |
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/pivotal-tracker-api/person.rb', line 4 def id @id end |
#initials ⇒ Object
Returns the value of attribute initials.
4 5 6 |
# File 'lib/pivotal-tracker-api/person.rb', line 4 def initials @initials end |
#kind ⇒ Object
Returns the value of attribute kind.
4 5 6 |
# File 'lib/pivotal-tracker-api/person.rb', line 4 def kind @kind end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/pivotal-tracker-api/person.rb', line 4 def name @name end |
#username ⇒ Object
Returns the value of attribute username.
4 5 6 |
# File 'lib/pivotal-tracker-api/person.rb', line 4 def username @username end |
Class Method Details
.fields ⇒ Object
6 7 8 |
# File 'lib/pivotal-tracker-api/person.rb', line 6 def self.fields ['name', 'id', 'initials', 'email', 'username', 'kind'] end |
.unknown ⇒ Object
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/pivotal-tracker-api/person.rb', line 10 def self.unknown new({ id: '0', name: 'Unkown', initials: 'Unkown', username: 'Unkown', email: 'Unkown', kind: 'person' }) end |