Exception: LedgerSync::ResourceAttributeError::TypeError
- Inherits:
-
LedgerSync::ResourceAttributeError
- Object
- StandardError
- Error
- LedgerSync::ResourceAttributeError
- LedgerSync::ResourceAttributeError::TypeError
- Defined in:
- lib/ledger_sync/error/resource_errors.rb
Instance Attribute Summary collapse
-
#attribute ⇒ Object
readonly
Returns the value of attribute attribute.
-
#resource_class ⇒ Object
readonly
Returns the value of attribute resource_class.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ TypeError
constructor
A new instance of TypeError.
Constructor Details
#initialize(args = {}) ⇒ TypeError
Returns a new instance of TypeError.
8 9 10 11 12 13 14 |
# File 'lib/ledger_sync/error/resource_errors.rb', line 8 def initialize(args = {}) @attribute = args.fetch(:attribute) @resource_class = args.fetch(:resource_class) @value = args.fetch(:value) super(message: ) end |
Instance Attribute Details
#attribute ⇒ Object (readonly)
Returns the value of attribute attribute.
6 7 8 |
# File 'lib/ledger_sync/error/resource_errors.rb', line 6 def attribute @attribute end |
#resource_class ⇒ Object (readonly)
Returns the value of attribute resource_class.
6 7 8 |
# File 'lib/ledger_sync/error/resource_errors.rb', line 6 def resource_class @resource_class end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
6 7 8 |
# File 'lib/ledger_sync/error/resource_errors.rb', line 6 def value @value end |