Class: Treblle::GeneratePayload
- Inherits:
-
Object
- Object
- Treblle::GeneratePayload
- Defined in:
- lib/treblle/generate_payload.rb
Constant Summary collapse
- SDK_LANG =
'ruby'
- TIME_FORMAT =
'%Y-%m-%d %H:%M:%S'
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(request:, response:, started_at:, configuration: Treblle.configuration) ⇒ GeneratePayload
constructor
A new instance of GeneratePayload.
Constructor Details
#initialize(request:, response:, started_at:, configuration: Treblle.configuration) ⇒ GeneratePayload
Returns a new instance of GeneratePayload.
11 12 13 14 15 16 |
# File 'lib/treblle/generate_payload.rb', line 11 def initialize(request:, response:, started_at:, configuration: Treblle.configuration) @request = request @response = response @started_at = started_at @configuration = configuration end |
Instance Method Details
#call ⇒ Object
18 19 20 |
# File 'lib/treblle/generate_payload.rb', line 18 def call payload.to_json end |