Class: FixVersion
Instance Attribute Summary collapse
-
#raw ⇒ Object
readonly
Returns the value of attribute raw.
Instance Method Summary collapse
- #id ⇒ Object
-
#initialize(raw) ⇒ FixVersion
constructor
A new instance of FixVersion.
- #name ⇒ Object
- #released? ⇒ Boolean
Constructor Details
#initialize(raw) ⇒ FixVersion
Returns a new instance of FixVersion.
6 7 8 |
# File 'lib/jirametrics/fix_version.rb', line 6 def initialize raw @raw = raw end |
Instance Attribute Details
#raw ⇒ Object (readonly)
Returns the value of attribute raw.
4 5 6 |
# File 'lib/jirametrics/fix_version.rb', line 4 def raw @raw end |
Instance Method Details
#id ⇒ Object
14 15 16 |
# File 'lib/jirametrics/fix_version.rb', line 14 def id @raw['id'].to_i end |
#name ⇒ Object
10 11 12 |
# File 'lib/jirametrics/fix_version.rb', line 10 def name @raw['name'] end |
#released? ⇒ Boolean
18 19 20 |
# File 'lib/jirametrics/fix_version.rb', line 18 def released? @raw['released'] end |