Class: FlexibleFilter::Field::Singular

Inherits:
Object
  • Object
show all
Defined in:
lib/flexible_filter/field/singular.rb

Direct Known Subclasses

Equals

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#fieldObject (readonly)

Returns the value of attribute field.



5
6
7
# File 'lib/flexible_filter/field/singular.rb', line 5

def field
  @field
end

#modelObject (readonly)

Returns the value of attribute model.



5
6
7
# File 'lib/flexible_filter/field/singular.rb', line 5

def model
  @model
end

#valueObject (readonly)

Returns the value of attribute value.



5
6
7
# File 'lib/flexible_filter/field/singular.rb', line 5

def value
  @value
end