Class: Stripe::Instrumentation::RequestContext

Inherits:
Object
  • Object
show all
Defined in:
lib/stripe/instrumentation.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#bodyObject (readonly)

Returns the value of attribute body.



56
57
58
# File 'lib/stripe/instrumentation.rb', line 56

def body
  @body
end

#durationObject (readonly)

Returns the value of attribute duration.



56
57
58
# File 'lib/stripe/instrumentation.rb', line 56

def duration
  @duration
end

#headerObject (readonly)

Returns the value of attribute header.



56
57
58
# File 'lib/stripe/instrumentation.rb', line 56

def header
  @header
end

#methodObject (readonly)

Returns the value of attribute method.



56
57
58
# File 'lib/stripe/instrumentation.rb', line 56

def method
  @method
end

#pathObject (readonly)

Returns the value of attribute path.



56
57
58
# File 'lib/stripe/instrumentation.rb', line 56

def path
  @path
end

#request_idObject (readonly)

Returns the value of attribute request_id.



56
57
58
# File 'lib/stripe/instrumentation.rb', line 56

def request_id
  @request_id
end