Sha256: ea8e17fad69f9bd80d051cf6cee62bc7e1c2a6afe755a59c2c1d7ccc22386d89

Contents?: true

Size: 308 Bytes

Versions: 49

Compression:

Stored size: 308 Bytes

Contents

# frozen_string_literal: true

class LHC::Response::Data::Collection < Array
  include LHC::Response::Data::Base

  def initialize(response, data: nil)
    @response = response
    @data = data

    super(
      as_json.map do |i|
        LHC::Response::Data.new(response, data: i)
      end
    )
  end
end

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
lhc-15.2.1 lib/lhc/response/data/collection.rb
lhc-15.2.0 lib/lhc/response/data/collection.rb
lhc-15.1.3 lib/lhc/response/data/collection.rb
lhc-15.1.2 lib/lhc/response/data/collection.rb
lhc-15.1.1 lib/lhc/response/data/collection.rb
lhc-15.1.0 lib/lhc/response/data/collection.rb
lhc-16.0.0.pre.pro2162.2 lib/lhc/response/data/collection.rb
lhc-16.0.0.pre.pro2162 lib/lhc/response/data/collection.rb
lhc-15.0.1 lib/lhc/response/data/collection.rb
lhc-15.0.0 lib/lhc/response/data/collection.rb
lhc-14.0.0 lib/lhc/response/data/collection.rb
lhc-13.4.0.pre.pro1766.1 lib/lhc/response/data/collection.rb
lhc-13.2.0 lib/lhc/response/data/collection.rb
lhc-13.1.0 lib/lhc/response/data/collection.rb
lhc-13.0.0 lib/lhc/response/data/collection.rb
lhc-12.3.0 lib/lhc/response/data/collection.rb
lhc-12.2.1 lib/lhc/response/data/collection.rb
lhc-12.2.0 lib/lhc/response/data/collection.rb
lhc-12.1.3 lib/lhc/response/data/collection.rb
lhc-12.1.2 lib/lhc/response/data/collection.rb