Class: Backlog::Object::Version
- Inherits:
-
Object
- Object
- Backlog::Object::Version
- 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(version) ⇒ Version
constructor
A new instance of Version.
Constructor Details
#initialize(version) ⇒ Version
Returns a new instance of Version.
34 35 36 37 38 |
# File 'lib/backlog/object.rb', line 34 def initialize(version) @id = version['id'] @name = version['name'] @date = version['date'] end |
Instance Attribute Details
#date ⇒ Object (readonly)
Returns the value of attribute date.
39 40 41 |
# File 'lib/backlog/object.rb', line 39 def date @date end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
39 40 41 |
# File 'lib/backlog/object.rb', line 39 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
39 40 41 |
# File 'lib/backlog/object.rb', line 39 def name @name end |