Class: FixVersion

Inherits:
Object show all
Defined in:
lib/jirametrics/fix_version.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#rawObject (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

#idObject



14
15
16
# File 'lib/jirametrics/fix_version.rb', line 14

def id
  @raw['id'].to_i
end

#nameObject



10
11
12
# File 'lib/jirametrics/fix_version.rb', line 10

def name
  @raw['name']
end

#released?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/jirametrics/fix_version.rb', line 18

def released?
  @raw['released']
end