class Trello::Activity

Attributes

attributes[RW]

Public Class Methods

new(attrs = {}) click to toggle source
# File lib/trello-lite/activity.rb, line 5
def initialize(attrs = {})
  @attributes = attrs
end

Public Instance Methods

name() click to toggle source
# File lib/trello-lite/activity.rb, line 13
def name
  attributes[:data][:card][:name]
end
new_list() click to toggle source
# File lib/trello-lite/activity.rb, line 29
def new_list
  unless attributes[:data][:listAfter].nil?
    attributes[:data][:listAfter][:name]
  else
    nil
  end
end
old_list() click to toggle source
# File lib/trello-lite/activity.rb, line 21
def old_list
  unless attributes[:data][:listBefore].nil?
    attributes[:data][:listBefore][:name]
  else
    nil
  end
end
type() click to toggle source
# File lib/trello-lite/activity.rb, line 9
def type
  attributes[:type]
end
updated_at() click to toggle source
# File lib/trello-lite/activity.rb, line 37
def updated_at
  Date.parse(attributes[:date]).strftime('%d/%m/%Y')
end