Module: Autoselect::Operators::ClassMethods
- Defined in:
- lib/autoselect/operators.rb
Instance Method Summary collapse
-
#operator_definitions ⇒ Array<Hash>
Metadata array for the config response
operatorskey. -
#operator_map ⇒ Hash
Override in model-specific operators module to add/remove operators.
Instance Method Details
#operator_definitions ⇒ Array<Hash>
Returns metadata array for the config response operators key.
32 33 34 35 36 37 38 39 40 41 |
# File 'lib/autoselect/operators.rb', line 32 def operator_definitions operator_map.map do |key, definition| { key: key.to_s, trigger: definition[:trigger], description: definition[:description], client_only: definition[:client_only] } end end |
#operator_map ⇒ Hash
Override in model-specific operators module to add/remove operators.
45 46 47 |
# File 'lib/autoselect/operators.rb', line 45 def operator_map Autoselect::Operators::OPERATORS end |