Sha256: 0747c31683930c9d0cd9b87d3107ab1db316ecd118f1fcec7f62c1df66d879ec

Contents?: true

Size: 154 Bytes

Versions: 1

Compression:

Stored size: 154 Bytes

Contents

class Invofox::Collection < Array
  def initialize(response, item_klass)
    response.each do |item|
      self << item_klass.new(item)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
invofox-api-ruby-0.1.2 lib/invofox/collection.rb