Class: Ransack::Adapters::Mongoid::Attributes::Attribute
- Inherits:
-
Struct
- Object
- Struct
- Ransack::Adapters::Mongoid::Attributes::Attribute
- Includes:
- OrderPredications, Predications
- Defined in:
- lib/ransack/adapters/mongoid/attributes/attribute.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#relation ⇒ Object
Returns the value of attribute relation.
Instance Method Summary collapse
-
#lower ⇒ Object
Create a node for lowering this attribute.
Methods included from OrderPredications
Methods included from Predications
#does_not_match, #does_not_match_all, #does_not_match_any, #eq, #eq_all, #eq_any, #gt, #gt_all, #gt_any, #gteq, #gteq_all, #gteq_any, #in, #in_all, #in_any, #lt, #lt_all, #lt_any, #lteq, #lteq_all, #lteq_any, #matches, #matches_all, #matches_any, #not_eq, #not_eq_all, #not_eq_any, #not_in, #not_in_all, #not_in_any
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
8 9 10 |
# File 'lib/ransack/adapters/mongoid/attributes/attribute.rb', line 8 def name @name end |
#relation ⇒ Object
Returns the value of attribute relation
8 9 10 |
# File 'lib/ransack/adapters/mongoid/attributes/attribute.rb', line 8 def relation @relation end |
Instance Method Details
#lower ⇒ Object
Create a node for lowering this attribute
20 21 22 |
# File 'lib/ransack/adapters/mongoid/attributes/attribute.rb', line 20 def lower relation.lower self end |