Class: ArQueryMatchers::Queries::ModelName
- Inherits:
-
Object
- Object
- ArQueryMatchers::Queries::ModelName
- Defined in:
- lib/ar_query_matchers/queries/model_name.rb
Overview
An instance of this class is one of the values that could be returned from the QueryFilter#filter_map. its 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.
Instance Method Summary collapse
-
#initialize(model_name) ⇒ ModelName
constructor
A new instance of ModelName.
Constructor Details
#initialize(model_name) ⇒ ModelName
Returns a new instance of ModelName.
10 11 12 |
# File 'lib/ar_query_matchers/queries/model_name.rb', line 10 def initialize(model_name) @model_name = model_name end |
Instance Attribute Details
#model_name ⇒ Object (readonly)
Returns the value of attribute model_name.
8 9 10 |
# File 'lib/ar_query_matchers/queries/model_name.rb', line 8 def model_name @model_name end |