Exception: SyncwiseApi::Errors::MissingInstanceVariable

Inherits:
SyncwiseError show all
Defined in:
lib/syncwise_api/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(variable, mixin, receiver) ⇒ MissingInstanceVariable

Returns a new instance of MissingInstanceVariable.



9
10
11
12
13
14
# File 'lib/syncwise_api/errors.rb', line 9

def initialize(variable, mixin, receiver)
  @variable = variable
  @mixin = mixin
  @receiver_inspect = receiver.inspect
  super("Mixin #{@mixin} tried to use undefined instance variable #{@variable} in #{@receiver_inspect}")
end

Instance Attribute Details

#mixinObject (readonly)

Returns the value of attribute mixin.



16
17
18
# File 'lib/syncwise_api/errors.rb', line 16

def mixin
  @mixin
end

#receiver_inspectObject (readonly)

Returns the value of attribute receiver_inspect.



16
17
18
# File 'lib/syncwise_api/errors.rb', line 16

def receiver_inspect
  @receiver_inspect
end

#variableObject (readonly)

Returns the value of attribute variable.



16
17
18
# File 'lib/syncwise_api/errors.rb', line 16

def variable
  @variable
end