Exception: Pursuit::AggregateModifierRequired
- Inherits:
-
QueryError
- Object
- StandardError
- Error
- QueryError
- Pursuit::AggregateModifierRequired
- Defined in:
- lib/pursuit/aggregate_modifier_required.rb
Overview
Raised when an attribute that must be used with an aggregate modifier is used without one.
Instance Attribute Summary collapse
-
#attribute ⇒ Symbol
readonly
The name of the attribute which must be used with an aggregate modifier.
Instance Method Summary collapse
-
#initialize(attribute) ⇒ AggregateModifierRequired
constructor
Creates a new error instance.
Constructor Details
#initialize(attribute) ⇒ AggregateModifierRequired
Creates a new error instance.
15 16 17 18 |
# File 'lib/pursuit/aggregate_modifier_required.rb', line 15 def initialize(attribute) @attribute = attribute super("'#{attribute}' must be used with an aggregate modifier") end |
Instance Attribute Details
#attribute ⇒ Symbol (readonly)
Returns The name of the attribute which must be used with an aggregate modifier.
9 10 11 |
# File 'lib/pursuit/aggregate_modifier_required.rb', line 9 def attribute @attribute end |