Class: Backlog::Object::Component

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(component) ⇒ Component

Returns a new instance of Component.



26
27
28
29
# File 'lib/backlog/object.rb', line 26

def initialize(component)
  @id = component['id']
  @name = component['name']
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



30
31
32
# File 'lib/backlog/object.rb', line 30

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



30
31
32
# File 'lib/backlog/object.rb', line 30

def name
  @name
end