Class: Restate::HandlerIO
- Inherits:
-
Struct
- Object
- Struct
- Restate::HandlerIO
- Defined in:
- lib/restate/handler.rb
Overview
Describes the input/output serialization for a handler. Schema is accessed via the serde’s json_schema method.
Instance Attribute Summary collapse
-
#accept ⇒ Object
Returns the value of attribute accept.
-
#content_type ⇒ Object
Returns the value of attribute content_type.
-
#input_serde ⇒ Object
Returns the value of attribute input_serde.
-
#output_serde ⇒ Object
Returns the value of attribute output_serde.
Instance Method Summary collapse
-
#initialize(accept: 'application/json', content_type: 'application/json', input_serde: JsonSerde, output_serde: JsonSerde) ⇒ HandlerIO
constructor
A new instance of HandlerIO.
Constructor Details
#initialize(accept: 'application/json', content_type: 'application/json', input_serde: JsonSerde, output_serde: JsonSerde) ⇒ HandlerIO
Returns a new instance of HandlerIO.
11 12 13 14 |
# File 'lib/restate/handler.rb', line 11 def initialize(accept: 'application/json', content_type: 'application/json', input_serde: JsonSerde, output_serde: JsonSerde) super end |
Instance Attribute Details
#accept ⇒ Object
Returns the value of attribute accept
10 11 12 |
# File 'lib/restate/handler.rb', line 10 def accept @accept end |
#content_type ⇒ Object
Returns the value of attribute content_type
10 11 12 |
# File 'lib/restate/handler.rb', line 10 def content_type @content_type end |
#input_serde ⇒ Object
Returns the value of attribute input_serde
10 11 12 |
# File 'lib/restate/handler.rb', line 10 def input_serde @input_serde end |
#output_serde ⇒ Object
Returns the value of attribute output_serde
10 11 12 |
# File 'lib/restate/handler.rb', line 10 def output_serde @output_serde end |