Class: Kapellmeister::Responder
- Defined in:
- lib/kapellmeister/responder.rb
Defined Under Namespace
Classes: Result
Instance Attribute Summary collapse
-
#payload ⇒ Object
readonly
Returns the value of attribute payload.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response, **args) ⇒ Responder
constructor
A new instance of Responder.
- #result ⇒ Object
Constructor Details
#initialize(response, **args) ⇒ Responder
Returns a new instance of Responder.
7 8 9 10 |
# File 'lib/kapellmeister/responder.rb', line 7 def initialize(response, **args) @response = response @payload = args.merge(status: status) # rubocop:disable Style/HashSyntax (for support ruby 2.4+) end |
Instance Attribute Details
#payload ⇒ Object (readonly)
Returns the value of attribute payload.
3 4 5 |
# File 'lib/kapellmeister/responder.rb', line 3 def payload @payload end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
3 4 5 |
# File 'lib/kapellmeister/responder.rb', line 3 def response @response end |