Class: Backlog::Object::ActivityType

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(activity_type) ⇒ ActivityType

Returns a new instance of ActivityType.



174
175
176
177
# File 'lib/backlog/object.rb', line 174

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

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



178
179
180
# File 'lib/backlog/object.rb', line 178

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



178
179
180
# File 'lib/backlog/object.rb', line 178

def name
  @name
end