Class: ArQueryMatchers::Queries::FieldName
- Inherits:
-
Object
- Object
- ArQueryMatchers::Queries::FieldName
- Defined in:
- lib/ar_query_matchers/queries/field_name.rb
Overview
An instance of this class is one of the values that could be returned from the QueryFilter#filter_map. it accepts a name of an ActiveRecord model, for example: ‘Company’.
Instance Attribute Summary collapse
-
#model_name ⇒ Object
readonly
Returns the value of attribute model_name.
-
#model_value ⇒ Object
readonly
Returns the value of attribute model_value.
Instance Method Summary collapse
-
#initialize(model_name, model_value) ⇒ FieldName
constructor
A new instance of FieldName.
Constructor Details
#initialize(model_name, model_value) ⇒ FieldName
Returns a new instance of FieldName.
10 11 12 13 |
# File 'lib/ar_query_matchers/queries/field_name.rb', line 10 def initialize(model_name, model_value) @model_name = model_name @model_value = model_value end |
Instance Attribute Details
#model_name ⇒ Object (readonly)
Returns the value of attribute model_name.
8 9 10 |
# File 'lib/ar_query_matchers/queries/field_name.rb', line 8 def model_name @model_name end |
#model_value ⇒ Object (readonly)
Returns the value of attribute model_value.
8 9 10 |
# File 'lib/ar_query_matchers/queries/field_name.rb', line 8 def model_value @model_value end |