Class: Teamweek::Api::Project
- Inherits:
-
Object
- Object
- Teamweek::Api::Project
- Includes:
- HashConstructed
- Defined in:
- lib/teamweek/api/project.rb
Instance Attribute Summary collapse
-
#color ⇒ Object
Returns the value of attribute color.
-
#foreign_id ⇒ Object
Returns the value of attribute foreign_id.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
Attributes included from HashConstructed
Instance Method Summary collapse
Methods included from HashConstructed
Instance Attribute Details
#color ⇒ Object
Returns the value of attribute color.
7 8 9 |
# File 'lib/teamweek/api/project.rb', line 7 def color @color end |
#foreign_id ⇒ Object
Returns the value of attribute foreign_id.
8 9 10 |
# File 'lib/teamweek/api/project.rb', line 8 def foreign_id @foreign_id end |
#id ⇒ Object
Returns the value of attribute id.
5 6 7 |
# File 'lib/teamweek/api/project.rb', line 5 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
6 7 8 |
# File 'lib/teamweek/api/project.rb', line 6 def name @name end |
Instance Method Details
#to_hash ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/teamweek/api/project.rb', line 11 def to_hash { id: id, name: name, color: color } end |