Class: FlexibleFilter::Field::Singular
- Inherits:
-
Object
- Object
- FlexibleFilter::Field::Singular
- Defined in:
- lib/flexible_filter/field/singular.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#field ⇒ Object
readonly
Returns the value of attribute field.
-
#model ⇒ Object
readonly
Returns the value of attribute model.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(model, field, value) ⇒ Singular
constructor
A new instance of Singular.
Constructor Details
#initialize(model, field, value) ⇒ Singular
Returns a new instance of Singular.
7 8 9 10 11 |
# File 'lib/flexible_filter/field/singular.rb', line 7 def initialize(model, field, value) @model = model @field = field @value = value end |
Instance Attribute Details
#field ⇒ Object (readonly)
Returns the value of attribute field.
5 6 7 |
# File 'lib/flexible_filter/field/singular.rb', line 5 def field @field end |
#model ⇒ Object (readonly)
Returns the value of attribute model.
5 6 7 |
# File 'lib/flexible_filter/field/singular.rb', line 5 def model @model end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
5 6 7 |
# File 'lib/flexible_filter/field/singular.rb', line 5 def value @value end |