Exception: Trader::BackendError
- Defined in:
- lib/trade-o-matic/errors.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#backend ⇒ Object
readonly
Returns the value of attribute backend.
Instance Method Summary collapse
-
#initialize(_backend, _message) ⇒ BackendError
constructor
A new instance of BackendError.
Constructor Details
#initialize(_backend, _message) ⇒ BackendError
Returns a new instance of BackendError.
9 10 11 12 |
# File 'lib/trade-o-matic/errors.rb', line 9 def initialize(_backend, ) super "#{_backend}: #{_message}" @backend = _backend end |
Instance Attribute Details
#backend ⇒ Object (readonly)
Returns the value of attribute backend.
7 8 9 |
# File 'lib/trade-o-matic/errors.rb', line 7 def backend @backend end |