Sha256: 559fbb2856bcc3516393333fe56581a76b500aaaad9fc94899338bfcb777126d

Contents?: true

Size: 243 Bytes

Versions: 3

Compression:

Stored size: 243 Bytes

Contents

module Her
  class Collection < ::Array
    attr_reader :metadata, :errors

    # @private
    def initialize(items=[], metadata={}, errors=[])
      super(items)
      @metadata = metadata || {}
      @errors = errors || []
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
her-0.3.6 lib/her/collection.rb
her-0.3.5 lib/her/collection.rb
her-0.3.4 lib/her/collection.rb