Sha256: 88bcbe55ef82b2c0c309ce9448f5f0331594e805599afe5432e7f3e670278575

Contents?: true

Size: 529 Bytes

Versions: 24

Compression:

Stored size: 529 Bytes

Contents

require 'fitting/records/spherical/response'

module Fitting
  class Records
    class Tested
      class Response
        def initialize(env_response)
          @env_response = env_response
        end

        def status
          @status ||= @env_response.status
        end

        def body
          @body ||= @env_response.body
        end

        def to_spherical
          Fitting::Records::Spherical::Response.new(
            status: status,
            body: body
          )
        end
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
fitting-2.18.3 lib/fitting/records/tested/response.rb
fitting-2.18.2 lib/fitting/records/tested/response.rb
fitting-2.18.1 lib/fitting/records/tested/response.rb
fitting-2.18.0 lib/fitting/records/tested/response.rb
fitting-2.17.0 lib/fitting/records/tested/response.rb
fitting-2.16.1 lib/fitting/records/tested/response.rb
fitting-2.16.0 lib/fitting/records/tested/response.rb
fitting-2.15.0 lib/fitting/records/tested/response.rb
fitting-2.14.1 lib/fitting/records/tested/response.rb
fitting-2.14.0 lib/fitting/records/tested/response.rb
fitting-2.13.1 lib/fitting/records/tested/response.rb
fitting-2.13.0 lib/fitting/records/tested/response.rb
fitting-2.12.1 lib/fitting/records/tested/response.rb
fitting-2.12.0 lib/fitting/records/tested/response.rb
fitting-2.11.0 lib/fitting/records/tested/response.rb
fitting-2.10.0 lib/fitting/records/tested/response.rb
fitting-2.9.1 lib/fitting/records/tested/response.rb
fitting-2.9.0 lib/fitting/records/tested/response.rb
fitting-2.8.1 lib/fitting/records/tested/response.rb
fitting-2.8.0 lib/fitting/records/tested/response.rb