Class: Stripe::Instrumentation::RequestContext
- Inherits:
-
Object
- Object
- Stripe::Instrumentation::RequestContext
- Defined in:
- lib/stripe/instrumentation.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#duration ⇒ Object
readonly
Returns the value of attribute duration.
-
#header ⇒ Object
readonly
Returns the value of attribute header.
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#request_id ⇒ Object
readonly
Returns the value of attribute request_id.
Instance Method Summary collapse
-
#initialize(duration:, context:, header:) ⇒ RequestContext
constructor
A new instance of RequestContext.
Constructor Details
#initialize(duration:, context:, header:) ⇒ RequestContext
Returns a new instance of RequestContext.
58 59 60 61 62 63 64 65 |
# File 'lib/stripe/instrumentation.rb', line 58 def initialize(duration:, context:, header:) @duration = duration @method = context.method @path = context.path @request_id = context.request_id @body = context.body @header = header end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
56 57 58 |
# File 'lib/stripe/instrumentation.rb', line 56 def body @body end |
#duration ⇒ Object (readonly)
Returns the value of attribute duration.
56 57 58 |
# File 'lib/stripe/instrumentation.rb', line 56 def duration @duration end |
#header ⇒ Object (readonly)
Returns the value of attribute header.
56 57 58 |
# File 'lib/stripe/instrumentation.rb', line 56 def header @header end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
56 57 58 |
# File 'lib/stripe/instrumentation.rb', line 56 def method @method end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
56 57 58 |
# File 'lib/stripe/instrumentation.rb', line 56 def path @path end |
#request_id ⇒ Object (readonly)
Returns the value of attribute request_id.
56 57 58 |
# File 'lib/stripe/instrumentation.rb', line 56 def request_id @request_id end |