Sha256: 2e208b81c049b21784bc55a918bee5a880d157916d7eda86a0b98ca63849479c

Contents?: true

Size: 638 Bytes

Versions: 8

Compression:

Stored size: 638 Bytes

Contents

require 'fitting/records/spherical/response'

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

        def status
          @status ||= @response.status
        end

        def body
          @body ||= @response.body
        end

        def content_type
          @content_type ||= @response.content_type
        end

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
fitting-4.2.1 lib/fitting/records/tested/response.rb
fitting-4.2.0 lib/fitting/records/tested/response.rb
fitting-4.1.0 lib/fitting/records/tested/response.rb
fitting-4.0.4 lib/fitting/records/tested/response.rb
fitting-4.0.3 lib/fitting/records/tested/response.rb
fitting-4.0.2 lib/fitting/records/tested/response.rb
fitting-4.0.1 lib/fitting/records/tested/response.rb
fitting-4.0.0 lib/fitting/records/tested/response.rb