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.4.4 lib/friendly_shipping/response.rb
friendly_shipping-0.4.3 lib/friendly_shipping/response.rb
friendly_shipping-0.4.2 lib/friendly_shipping/response.rb
friendly_shipping-0.4.1 lib/friendly_shipping/response.rb
friendly_shipping-0.4.0 lib/friendly_shipping/response.rb