Class: Workato::Connector::Sdk::UnexpectedMethodDefinitionError
- Inherits:
-
InvalidDefinitionError
- Object
- Workato::Connector::Sdk::UnexpectedMethodDefinitionError
- Defined in:
- lib/workato/connector/sdk/errors.rb
Instance Attribute Summary collapse
-
#definition ⇒ Object
readonly
Returns the value of attribute definition.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, definition) ⇒ UnexpectedMethodDefinitionError
constructor
A new instance of UnexpectedMethodDefinitionError.
Constructor Details
#initialize(name, definition) ⇒ UnexpectedMethodDefinitionError
Returns a new instance of UnexpectedMethodDefinitionError.
36 37 38 39 40 |
# File 'lib/workato/connector/sdk/errors.rb', line 36 def initialize(name, definition) super("Expected lambda for method '#{name}' definition, got: #{definition.class.name}") @name = name @definition = definition end |
Instance Attribute Details
#definition ⇒ Object (readonly)
Returns the value of attribute definition.
34 35 36 |
# File 'lib/workato/connector/sdk/errors.rb', line 34 def definition @definition end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
33 34 35 |
# File 'lib/workato/connector/sdk/errors.rb', line 33 def name @name end |