lib/friendly_shipping/request.rb in friendly_shipping-0.2.6 vs lib/friendly_shipping/request.rb in friendly_shipping-0.3.0
- old
+ new
@@ -1,13 +1,14 @@
# frozen_string_literal: true
module FriendlyShipping
class Request
- attr_reader :url, :body, :headers
+ attr_reader :url, :body, :headers, :debug
- def initialize(url:, body: nil, headers: {})
+ def initialize(url:, body: nil, headers: {}, debug: false)
@url = url
@body = body
@headers = headers
+ @debug = debug
end
end
end