Module: APIExtentions
- Included in:
- KanbanpadAPI::Task, KanbanpadAPI::TaskList
- Defined in:
- lib/provider/api-extensions.rb
Instance Method Summary collapse
Instance Method Details
#to_ticket_hash ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/provider/api-extensions.rb', line 2 def to_ticket_hash {:id => id, :title => title, :created_at => created_at, :updated_at => updated_at, :wip => wip, :step_id => step_id, :project_slug => project_slug, :finished => finished, :backlog => backlog, :assignee => assigned_to} end |
#update_with(ticket) ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/provider/api-extensions.rb', line 15 def update_with(ticket) self.assigned_to = ticket.assignee == 'Nobody' ? '' : ticket.assignee self.title = ticket.title self.task_id = ticket.id self.note = ticket.description self end |