Exception: Graphiti::Errors::UnsupportedOperator
- Defined in:
- lib/graphiti/errors.rb
Instance Method Summary collapse
-
#initialize(resource, filter_name, supported, operator) ⇒ UnsupportedOperator
constructor
A new instance of UnsupportedOperator.
- #message ⇒ Object
Constructor Details
#initialize(resource, filter_name, supported, operator) ⇒ UnsupportedOperator
Returns a new instance of UnsupportedOperator.
100 101 102 103 104 105 |
# File 'lib/graphiti/errors.rb', line 100 def initialize(resource, filter_name, supported, operator) @resource = resource @filter_name = filter_name @supported = supported @operator = operator end |
Instance Method Details
#message ⇒ Object
107 108 109 110 111 |
# File 'lib/graphiti/errors.rb', line 107 def <<~MSG #{@resource.class}: Tried to filter #{@filter_name.inspect} on operator #{@operator.inspect}, but not supported! Supported operators are #{@supported}. MSG end |