Method: EasyPost::Hooks::RequestContext#initialize
- Defined in:
- lib/easypost/hooks/request_context.rb
#initialize(method:, path:, headers:, request_body:, request_timestamp:, request_uuid:) ⇒ RequestContext
Returns a new instance of RequestContext.
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/easypost/hooks/request_context.rb', line 6 def initialize(method:, path:, headers:, request_body:, request_timestamp:, request_uuid:) @method = method @path = path @headers = headers @request_body = request_body = @request_uuid = request_uuid freeze end |