Class: PaymentKit::Instrumentation::RequestBeginEvent

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

Overview

Emitted before the request leaves the process.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(method:, path:) ⇒ RequestBeginEvent

:nodoc:



27
28
29
30
# File 'lib/payment_kit/instrumentation.rb', line 27

def initialize(method:, path:) # :nodoc:
  @method = method
  @path = path
end

Instance Attribute Details

#methodObject (readonly)

HTTP verb as a Symbol, e.g. :post.



22
23
24
# File 'lib/payment_kit/instrumentation.rb', line 22

def method
  @method
end

#pathObject (readonly)

Request path, relative to the account base URL.



25
26
27
# File 'lib/payment_kit/instrumentation.rb', line 25

def path
  @path
end