Class: Backlog::Object::Priority

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(priority) ⇒ Priority

Returns a new instance of Priority.



112
113
114
115
# File 'lib/backlog/object.rb', line 112

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

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



116
117
118
# File 'lib/backlog/object.rb', line 116

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



116
117
118
# File 'lib/backlog/object.rb', line 116

def name
  @name
end