Class: Backlog::Object::IssueType
- Inherits:
-
Object
- Object
- Backlog::Object::IssueType
- Defined in:
- lib/backlog/object.rb
Instance Attribute Summary collapse
-
#color ⇒ Object
readonly
Returns the value of attribute color.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(issue_type) ⇒ IssueType
constructor
A new instance of IssueType.
Constructor Details
#initialize(issue_type) ⇒ IssueType
Returns a new instance of IssueType.
71 72 73 74 75 |
# File 'lib/backlog/object.rb', line 71 def initialize(issue_type) @id = issue_type['id'] @name = issue_type['name'] @color = issue_type['color'] end |
Instance Attribute Details
#color ⇒ Object (readonly)
Returns the value of attribute color.
76 77 78 |
# File 'lib/backlog/object.rb', line 76 def color @color end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
76 77 78 |
# File 'lib/backlog/object.rb', line 76 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
76 77 78 |
# File 'lib/backlog/object.rb', line 76 def name @name end |