Class: Workato::Connector::Sdk::UnexpectedMethodDefinitionError

Inherits:
InvalidDefinitionError
  • Object
show all
Defined in:
lib/workato/connector/sdk/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#definitionObject (readonly)

Returns the value of attribute definition.



34
35
36
# File 'lib/workato/connector/sdk/errors.rb', line 34

def definition
  @definition
end

#nameObject (readonly)

Returns the value of attribute name.



33
34
35
# File 'lib/workato/connector/sdk/errors.rb', line 33

def name
  @name
end