Class: FilterForm::InputOptions::Base
- Inherits:
-
Object
- Object
- FilterForm::InputOptions::Base
- Defined in:
- lib/filter_form/input_options/base.rb
Direct Known Subclasses
FilterForm::InputOptions::Boolean::Base, Checkbox::Base, Number::Base, RadioButtons::Base, Select::Base, String::Base
Constant Summary collapse
- DEFAULT_PREDICATE =
nil
- PREDICATE_IN =
:in
Instance Attribute Summary collapse
-
#attribute_name ⇒ Object
Returns the value of attribute attribute_name.
-
#custom_predicate ⇒ Object
Returns the value of attribute custom_predicate.
-
#object ⇒ Object
Returns the value of attribute object.
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(options) ⇒ Base
constructor
A new instance of Base.
- #simple_form_options ⇒ Object
Constructor Details
#initialize(options) ⇒ Base
Returns a new instance of Base.
9 10 11 12 13 14 |
# File 'lib/filter_form/input_options/base.rb', line 9 def initialize() @attribute_name = [:attribute_name] @object = [:object] @custom_predicate = [:custom_predicate] @options = [:options] end |
Instance Attribute Details
#attribute_name ⇒ Object
Returns the value of attribute attribute_name.
7 8 9 |
# File 'lib/filter_form/input_options/base.rb', line 7 def attribute_name @attribute_name end |
#custom_predicate ⇒ Object
Returns the value of attribute custom_predicate.
7 8 9 |
# File 'lib/filter_form/input_options/base.rb', line 7 def custom_predicate @custom_predicate end |
#object ⇒ Object
Returns the value of attribute object.
7 8 9 |
# File 'lib/filter_form/input_options/base.rb', line 7 def object @object end |
#options ⇒ Object
Returns the value of attribute options.
7 8 9 |
# File 'lib/filter_form/input_options/base.rb', line 7 def @options end |
Instance Method Details
#simple_form_options ⇒ Object
16 17 18 |
# File 'lib/filter_form/input_options/base.rb', line 16 def .merge().merge() end |