Sha256: 651dd11ecaa46f1a613c5f47a6bff36654ccaa117d65cb2c59e5ebab3cdd1b64

Contents?: true

Size: 488 Bytes

Versions: 17

Compression:

Stored size: 488 Bytes

Contents

# frozen_string_literal: true

module FriendlyShipping
  class Request
    attr_reader :url, :body, :headers, :debug

    # @param [String] url The HTTP request URL
    # @param [String] body The HTTP request body
    # @param [Hash] headers The HTTP request headers
    # @param [Boolean] debug Whether to debug the request
    def initialize(url:, body: nil, headers: {}, debug: false)
      @url = url
      @body = body
      @headers = headers
      @debug = debug
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
friendly_shipping-0.5.1 lib/friendly_shipping/request.rb
friendly_shipping-0.5 lib/friendly_shipping/request.rb
friendly_shipping-0.4.14 lib/friendly_shipping/request.rb
friendly_shipping-0.4.13 lib/friendly_shipping/request.rb
friendly_shipping-0.4.12 lib/friendly_shipping/request.rb
friendly_shipping-0.4.11 lib/friendly_shipping/request.rb
friendly_shipping-0.4.10 lib/friendly_shipping/request.rb
friendly_shipping-0.4.9 lib/friendly_shipping/request.rb
friendly_shipping-0.4.8 lib/friendly_shipping/request.rb
friendly_shipping-0.4.7 lib/friendly_shipping/request.rb
friendly_shipping-0.4.6 lib/friendly_shipping/request.rb
friendly_shipping-0.4.5 lib/friendly_shipping/request.rb
friendly_shipping-0.4.4 lib/friendly_shipping/request.rb
friendly_shipping-0.4.3 lib/friendly_shipping/request.rb
friendly_shipping-0.4.2 lib/friendly_shipping/request.rb
friendly_shipping-0.4.1 lib/friendly_shipping/request.rb
friendly_shipping-0.4.0 lib/friendly_shipping/request.rb