Class: Backlog::Object::Milestone

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(milestone) ⇒ Milestone

Returns a new instance of Milestone.



143
144
145
146
147
# File 'lib/backlog/object.rb', line 143

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

Instance Attribute Details

#dateObject (readonly)

Returns the value of attribute date.



148
149
150
# File 'lib/backlog/object.rb', line 148

def date
  @date
end

#idObject (readonly)

Returns the value of attribute id.



148
149
150
# File 'lib/backlog/object.rb', line 148

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



148
149
150
# File 'lib/backlog/object.rb', line 148

def name
  @name
end