Class: EasyPost::Hooks::RequestContext
- Inherits:
-
Object
- Object
- EasyPost::Hooks::RequestContext
- Defined in:
- lib/easypost/hooks/request_context.rb
Instance Attribute Summary collapse
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#request_body ⇒ Object
readonly
Returns the value of attribute request_body.
-
#request_timestamp ⇒ Object
readonly
Returns the value of attribute request_timestamp.
-
#request_uuid ⇒ Object
readonly
Returns the value of attribute request_uuid.
Instance Method Summary collapse
-
#initialize(method:, path:, headers:, request_body:, request_timestamp:, request_uuid:) ⇒ RequestContext
constructor
A new instance of RequestContext.
Constructor Details
#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_timestamp = @request_uuid = request_uuid freeze end |
Instance Attribute Details
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
4 5 6 |
# File 'lib/easypost/hooks/request_context.rb', line 4 def headers @headers end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
4 5 6 |
# File 'lib/easypost/hooks/request_context.rb', line 4 def method @method end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
4 5 6 |
# File 'lib/easypost/hooks/request_context.rb', line 4 def path @path end |
#request_body ⇒ Object (readonly)
Returns the value of attribute request_body.
4 5 6 |
# File 'lib/easypost/hooks/request_context.rb', line 4 def request_body @request_body end |
#request_timestamp ⇒ Object (readonly)
Returns the value of attribute request_timestamp.
4 5 6 |
# File 'lib/easypost/hooks/request_context.rb', line 4 def @request_timestamp end |
#request_uuid ⇒ Object (readonly)
Returns the value of attribute request_uuid.
4 5 6 |
# File 'lib/easypost/hooks/request_context.rb', line 4 def request_uuid @request_uuid end |