Exception: Trader::NotSupportedError

Inherits:
BackendError show all
Defined in:
lib/trade-o-matic/errors.rb

Instance Attribute Summary collapse

Attributes inherited from BackendError

#backend

Instance Method Summary collapse

Constructor Details

#initialize(_backend, _feature) ⇒ NotSupportedError

Returns a new instance of NotSupportedError.



18
19
20
21
# File 'lib/trade-o-matic/errors.rb', line 18

def initialize(_backend, _feature)
  super _backend, "#{_feature} not supported"
  @feature = _feature
end

Instance Attribute Details

#featureObject (readonly)

Returns the value of attribute feature.



16
17
18
# File 'lib/trade-o-matic/errors.rb', line 16

def feature
  @feature
end