Sha256: cb8264d61c7770190b6499d16817cef2d165c5eabbdb8cfbcdc62c0ce052fa0b

Contents?: true

Size: 185 Bytes

Versions: 2

Compression:

Stored size: 185 Bytes

Contents

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
afterbanks-psd2-api-ruby-0.1.1 lib/afterbanks_psd2/collection.rb
afterbanks-psd2-api-ruby-0.1.0 lib/afterbanks_psd2/collection.rb