Exception: SyncwiseApi::Errors::MissingInstanceVariable
- Inherits:
-
SyncwiseError
- Object
- StandardError
- SyncwiseError
- SyncwiseApi::Errors::MissingInstanceVariable
- Defined in:
- lib/syncwise_api/errors.rb
Instance Attribute Summary collapse
-
#mixin ⇒ Object
readonly
Returns the value of attribute mixin.
-
#receiver_inspect ⇒ Object
readonly
Returns the value of attribute receiver_inspect.
-
#variable ⇒ Object
readonly
Returns the value of attribute variable.
Instance Method Summary collapse
-
#initialize(variable, mixin, receiver) ⇒ MissingInstanceVariable
constructor
A new instance of MissingInstanceVariable.
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
#mixin ⇒ Object (readonly)
Returns the value of attribute mixin.
16 17 18 |
# File 'lib/syncwise_api/errors.rb', line 16 def mixin @mixin end |
#receiver_inspect ⇒ Object (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 |
#variable ⇒ Object (readonly)
Returns the value of attribute variable.
16 17 18 |
# File 'lib/syncwise_api/errors.rb', line 16 def variable @variable end |