Sha256: 482969c4ec68d63eeadbacde4e62bf927e3d5d8e8baa858141d32292b946e8b7

Contents?: true

Size: 408 Bytes

Versions: 25

Compression:

Stored size: 408 Bytes

Contents

# frozen_string_literal: true

module FriendlyShipping
  class Response
    attr_reader :status, :body, :headers

    # @param [Integer] status The HTTP response status code
    # @param [String] body The HTTP response body
    # @param [Hash] headers The HTTP response headers
    def initialize(status:, body:, headers:)
      @status = status
      @body = body
      @headers = headers
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
friendly_shipping-0.6.5 lib/friendly_shipping/response.rb
friendly_shipping-0.6.4 lib/friendly_shipping/response.rb
friendly_shipping-0.6.3 lib/friendly_shipping/response.rb
friendly_shipping-0.6.2 lib/friendly_shipping/response.rb
friendly_shipping-0.6.1 lib/friendly_shipping/response.rb
friendly_shipping-0.6.0 lib/friendly_shipping/response.rb
friendly_shipping-0.5.3 lib/friendly_shipping/response.rb
friendly_shipping-0.5.2 lib/friendly_shipping/response.rb
friendly_shipping-0.5.1 lib/friendly_shipping/response.rb
friendly_shipping-0.5 lib/friendly_shipping/response.rb
friendly_shipping-0.4.14 lib/friendly_shipping/response.rb
friendly_shipping-0.4.13 lib/friendly_shipping/response.rb
friendly_shipping-0.4.12 lib/friendly_shipping/response.rb
friendly_shipping-0.4.11 lib/friendly_shipping/response.rb
friendly_shipping-0.4.10 lib/friendly_shipping/response.rb
friendly_shipping-0.4.9 lib/friendly_shipping/response.rb
friendly_shipping-0.4.8 lib/friendly_shipping/response.rb
friendly_shipping-0.4.7 lib/friendly_shipping/response.rb
friendly_shipping-0.4.6 lib/friendly_shipping/response.rb
friendly_shipping-0.4.5 lib/friendly_shipping/response.rb