Class: Refine::Inline::Criteria::DateRefinement
- Inherits:
-
Object
- Object
- Refine::Inline::Criteria::DateRefinement
- Includes:
- ActiveModel::Model
- Defined in:
- app/models/refine/inline/criteria/date_refinement.rb
Instance Attribute Summary collapse
-
#clause ⇒ Object
Returns the value of attribute clause.
-
#date1 ⇒ Object
Returns the value of attribute date1.
-
#date2 ⇒ Object
Returns the value of attribute date2.
-
#days ⇒ Object
Returns the value of attribute days.
-
#modifier ⇒ Object
Returns the value of attribute modifier.
Instance Method Summary collapse
Instance Attribute Details
#clause ⇒ Object
Returns the value of attribute clause.
4 5 6 |
# File 'app/models/refine/inline/criteria/date_refinement.rb', line 4 def clause @clause end |
#date1 ⇒ Object
Returns the value of attribute date1.
4 5 6 |
# File 'app/models/refine/inline/criteria/date_refinement.rb', line 4 def date1 @date1 end |
#date2 ⇒ Object
Returns the value of attribute date2.
4 5 6 |
# File 'app/models/refine/inline/criteria/date_refinement.rb', line 4 def date2 @date2 end |
#days ⇒ Object
Returns the value of attribute days.
4 5 6 |
# File 'app/models/refine/inline/criteria/date_refinement.rb', line 4 def days @days end |
#modifier ⇒ Object
Returns the value of attribute modifier.
4 5 6 |
# File 'app/models/refine/inline/criteria/date_refinement.rb', line 4 def modifier @modifier end |
Instance Method Details
#attributes ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'app/models/refine/inline/criteria/date_refinement.rb', line 6 def attributes { clause: clause, date1: date1, date2: date2, days: days, modifier: modifier }.compact end |