lib/friendly_shipping/request.rb in friendly_shipping-0.3.4 vs lib/friendly_shipping/request.rb in friendly_shipping-0.4.0
- old
+ new
@@ -2,9 +2,13 @@
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