Class: Cadenya::Types::ResultAction_Transform
- Inherits:
-
Object
- Object
- Cadenya::Types::ResultAction_Transform
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#content_template ⇒ Object
readonly
Returns the value of attribute content_template.
-
#expect_json ⇒ Object
readonly
Returns the value of attribute expect_json.
-
#on_error ⇒ Object
readonly
Returns the value of attribute on_error.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(content_template: nil, on_error: nil, expect_json: nil) ⇒ ResultAction_Transform
constructor
A new instance of ResultAction_Transform.
- #to_h ⇒ Object
Constructor Details
#initialize(content_template: nil, on_error: nil, expect_json: nil) ⇒ ResultAction_Transform
Returns a new instance of ResultAction_Transform.
4802 4803 4804 4805 4806 |
# File 'lib/cadenya/types.rb', line 4802 def initialize(content_template: nil, on_error: nil, expect_json: nil) @content_template = content_template @on_error = on_error @expect_json = expect_json end |
Instance Attribute Details
#content_template ⇒ Object (readonly)
Returns the value of attribute content_template.
4800 4801 4802 |
# File 'lib/cadenya/types.rb', line 4800 def content_template @content_template end |
#expect_json ⇒ Object (readonly)
Returns the value of attribute expect_json.
4800 4801 4802 |
# File 'lib/cadenya/types.rb', line 4800 def expect_json @expect_json end |
#on_error ⇒ Object (readonly)
Returns the value of attribute on_error.
4800 4801 4802 |
# File 'lib/cadenya/types.rb', line 4800 def on_error @on_error end |
Class Method Details
.from_json(data) ⇒ Object
4808 4809 4810 4811 4812 4813 4814 |
# File 'lib/cadenya/types.rb', line 4808 def self.from_json(data) new( content_template: data["contentTemplate"], on_error: data["onError"], expect_json: data["expectJson"], ) end |