Sha256: 0beca00480bfd5732cd0ef796cbd2b4a294b0556b353870d831f114e803cbd1e

Contents?: true

Size: 509 Bytes

Versions: 3

Compression:

Stored size: 509 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 to_spherical
          Fitting::Records::Spherical::Response.new(
            status: status,
            body: body
          )
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fitting-3.0.2 lib/fitting/records/tested/response.rb
fitting-3.0.1 lib/fitting/records/tested/response.rb
fitting-3.0.0 lib/fitting/records/tested/response.rb