Class: RubynCode::Teams::Teammate
- Inherits:
-
Data
- Object
- Data
- RubynCode::Teams::Teammate
- Defined in:
- lib/rubyn_code/teams/teammate.rb
Instance Attribute Summary collapse
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#model ⇒ Object
readonly
Returns the value of attribute model.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#persona ⇒ Object
readonly
Returns the value of attribute persona.
-
#role ⇒ Object
readonly
Returns the value of attribute role.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
Instance Attribute Details
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at
10 11 12 |
# File 'lib/rubyn_code/teams/teammate.rb', line 10 def created_at @created_at end |
#id ⇒ Object (readonly)
Returns the value of attribute id
10 11 12 |
# File 'lib/rubyn_code/teams/teammate.rb', line 10 def id @id end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata
10 11 12 |
# File 'lib/rubyn_code/teams/teammate.rb', line 10 def @metadata end |
#model ⇒ Object (readonly)
Returns the value of attribute model
10 11 12 |
# File 'lib/rubyn_code/teams/teammate.rb', line 10 def model @model end |
#name ⇒ Object (readonly)
Returns the value of attribute name
10 11 12 |
# File 'lib/rubyn_code/teams/teammate.rb', line 10 def name @name end |
#persona ⇒ Object (readonly)
Returns the value of attribute persona
10 11 12 |
# File 'lib/rubyn_code/teams/teammate.rb', line 10 def persona @persona end |
#role ⇒ Object (readonly)
Returns the value of attribute role
10 11 12 |
# File 'lib/rubyn_code/teams/teammate.rb', line 10 def role @role end |
#status ⇒ Object (readonly)
Returns the value of attribute status
10 11 12 |
# File 'lib/rubyn_code/teams/teammate.rb', line 10 def status @status end |
Instance Method Details
#active? ⇒ Boolean
17 |
# File 'lib/rubyn_code/teams/teammate.rb', line 17 def active? = status == 'active' |
#idle? ⇒ Boolean
14 |
# File 'lib/rubyn_code/teams/teammate.rb', line 14 def idle? = status == 'idle' |
#offline? ⇒ Boolean
20 |
# File 'lib/rubyn_code/teams/teammate.rb', line 20 def offline? = status == 'offline' |
#to_h ⇒ Hash
23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/rubyn_code/teams/teammate.rb', line 23 def to_h { id: id, name: name, role: role, persona: persona, model: model, status: status, metadata: , created_at: created_at } end |