Sha256: 894c46e8c6705143a2c52d2a68facfb257cf055c38f727946c4c191b2c235d86

Contents?: true

Size: 425 Bytes

Versions: 1

Compression:

Stored size: 425 Bytes

Contents

# frozen_string_literal: true

require 'mws/orders/document'

module MWS
  module Orders
    class Collection < Document
      include Enumerable

      def each
        raise NotImplementedError
      end

      def empty?
        count.zero?
      end

      def attributes
        map(&:attributes)
      end

      def inspect
        "#<#{self.class.name} #{to_a}>"
      end

      alias to_s inspect
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mws-orders-0.4.0 lib/mws/orders/collection.rb