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, ={}) optional_params = [:page, :count, :event] response = get("/updates/#{id}/interactions.json", ) interactions = response['interactions'].map { |r| Buff::Interaction.new(r) } Buff::Interactions.new( { total: response['total'], interactions: interactions } ) end |