Class: ArQueryMatchers::Queries::ModelName

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_nameObject (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