class EngagingNetworks::Response::Collection

Attributes

objects[R]

Public Class Methods

new(data) click to toggle source
# File lib/engaging_networks/response/collection.rb, line 10
def initialize(data)
  @objects = data.inject([]) do |arr, row|
    arr << EngagingNetworks::Response::Object.new(row)
  end
end

Public Instance Methods

each(&block) click to toggle source
# File lib/engaging_networks/response/collection.rb, line 16
def each(&block)
  @objects.each do |o|
    block.call(o)
  end
end