Method: Buff::Client::Update#interactions_by_update_id

Defined in:
lib/buff/update.rb

#interactions_by_update_id(id, options = {}) ⇒ Object



22
23
24
25
26
27
28
29
# File 'lib/buff/update.rb', line 22

def interactions_by_update_id(id, options={})
  optional_params = [:page, :count, :event]
  response = get("/updates/#{id}/interactions.json", options)
  interactions = response['interactions'].map { |r| Buff::Interaction.new(r) }
  Buff::Interactions.new(
    { total: response['total'], interactions: interactions }
  )
end