Class: PaginationSearch::AttributeSet::Attribute
- Inherits:
-
Struct
- Object
- Struct
- PaginationSearch::AttributeSet::Attribute
- Defined in:
- lib/pagination_search/attribute_set.rb
Instance Attribute Summary collapse
-
#arel_table ⇒ Object
Returns the value of attribute arel_table.
-
#association_name ⇒ Object
Returns the value of attribute association_name.
-
#column_name ⇒ Object
Returns the value of attribute column_name.
-
#name ⇒ Object
Returns the value of attribute name.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Instance Attribute Details
#arel_table ⇒ Object
Returns the value of attribute arel_table
3 4 5 |
# File 'lib/pagination_search/attribute_set.rb', line 3 def arel_table @arel_table end |
#association_name ⇒ Object
Returns the value of attribute association_name
3 4 5 |
# File 'lib/pagination_search/attribute_set.rb', line 3 def association_name @association_name end |
#column_name ⇒ Object
Returns the value of attribute column_name
3 4 5 |
# File 'lib/pagination_search/attribute_set.rb', line 3 def column_name @column_name end |
#name ⇒ Object
Returns the value of attribute name
3 4 5 |
# File 'lib/pagination_search/attribute_set.rb', line 3 def name @name end |
#type ⇒ Object
Returns the value of attribute type
3 4 5 |
# File 'lib/pagination_search/attribute_set.rb', line 3 def type @type end |
Instance Method Details
#column ⇒ Object
4 5 6 |
# File 'lib/pagination_search/attribute_set.rb', line 4 def column arel_table[column_name] end |
#matching_condition(value) ⇒ Object
8 9 10 |
# File 'lib/pagination_search/attribute_set.rb', line 8 def matching_condition(value) column.matches("%#{value}%") end |