Sha256: 59d8de9e531cfbf1d1ce47c404f98cb37c6999c4f5e971f90de1359bb76963e9

Contents?: true

Size: 482 Bytes

Versions: 2

Compression:

Stored size: 482 Bytes

Contents

module Xolphin
  module Api
    module Responses
      class Requests < Base
        def initialize(data)
          super(data)
        end

        def requests
          @requests ||= begin
            requests = []

            if _embedded && _embedded["requests"]
              _embedded["requests"].each do |request|
                requests << Request.new(request)
              end
            end

            requests
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
xolphin-api-1.9.0 lib/xolphin/api/responses/requests.rb
xolphin-api-1.8.0 lib/xolphin/api/responses/requests.rb