Sha256: 45fe375296c428522eb14cd2893ab5eaba6f33e354123e8df48189ecdd5ad24b

Contents?: true

Size: 298 Bytes

Versions: 10

Compression:

Stored size: 298 Bytes

Contents

module OpenBD
  module Responses
    class Get < BaseResponse
      include ::Enumerable

      def each(&block)
        resources.each(&block)
      end

      def resources
        body.map do |source|
          ::OpenBD::Resources::OpenbdItem.new(source)
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
openbd_api-0.6.1 lib/openbd/responses/get.rb
openbd_api-0.6.0 lib/openbd/responses/get.rb
openbd_api-0.5.1 lib/openbd/responses/get.rb
openbd_api-0.5.0 lib/openbd/responses/get.rb
openbd_api-0.4.5 lib/openbd/responses/get.rb
openbd_api-0.4.4 lib/openbd/responses/get.rb
openbd_api-0.4.3 lib/openbd/responses/get.rb
openbd_api-0.4.2 lib/openbd/responses/get.rb
openbd_api-0.4.1 lib/openbd/responses/get.rb
openbd_api-0.4.0 lib/openbd/responses/get.rb