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.
75 76 77 78 79 80 |
# File 'lib/graphiti/errors.rb', line 75 def initialize(resource, filter_name, supported, operator) @resource = resource @filter_name = filter_name @supported = supported @operator = operator end |
Instance Method Details
#message ⇒ Object
82 83 84 85 86 |
# File 'lib/graphiti/errors.rb', line 82 def <<-MSG #{@resource.class}: Tried to filter #{@filter_name.inspect} on operator #{@operator.inspect}, but not supported! Supported operators are #{@supported}. MSG end |