Class: Backlog::Object::Milestone
- Inherits:
-
Object
- Object
- Backlog::Object::Milestone
- Defined in:
- lib/backlog/object.rb
Instance Attribute Summary collapse
-
#date ⇒ Object
readonly
Returns the value of attribute date.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(milestone) ⇒ Milestone
constructor
A new instance of Milestone.
Constructor Details
#initialize(milestone) ⇒ Milestone
Returns a new instance of Milestone.
143 144 145 146 147 |
# File 'lib/backlog/object.rb', line 143 def initialize(milestone) @id = milestone['id'] @name = milestone['name'] @date = milestone['date'] end |
Instance Attribute Details
#date ⇒ Object (readonly)
Returns the value of attribute date.
148 149 150 |
# File 'lib/backlog/object.rb', line 148 def date @date end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
148 149 150 |
# File 'lib/backlog/object.rb', line 148 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
148 149 150 |
# File 'lib/backlog/object.rb', line 148 def name @name end |