Class: Backlog::Object::Version

Inherits:
Object
  • Object
show all
Defined in:
lib/backlog/object.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dateObject (readonly)

Returns the value of attribute date.



39
40
41
# File 'lib/backlog/object.rb', line 39

def date
  @date
end

#idObject (readonly)

Returns the value of attribute id.



39
40
41
# File 'lib/backlog/object.rb', line 39

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



39
40
41
# File 'lib/backlog/object.rb', line 39

def name
  @name
end