Class: Storing::Inquirer
- Inherits:
-
AbstractInquirer
- Object
- AbstractInquirer
- Storing::Inquirer
- Defined in:
- lib/storing/inquirer.rb
Instance Attribute Summary collapse
-
#mapper ⇒ Object
readonly
Returns the value of attribute mapper.
-
#query_object ⇒ Object
readonly
Returns the value of attribute query_object.
-
#store ⇒ Object
readonly
Returns the value of attribute store.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(mapper, store, query_object) ⇒ Inquirer
constructor
A new instance of Inquirer.
- #query(query_object) ⇒ Object
Constructor Details
#initialize(mapper, store, query_object) ⇒ Inquirer
Returns a new instance of Inquirer.
12 13 14 15 16 |
# File 'lib/storing/inquirer.rb', line 12 def initialize mapper, store, query_object @mapper = mapper @store = store @query_object = query_object end |
Instance Attribute Details
#mapper ⇒ Object (readonly)
Returns the value of attribute mapper.
10 11 12 |
# File 'lib/storing/inquirer.rb', line 10 def mapper @mapper end |
#query_object ⇒ Object (readonly)
Returns the value of attribute query_object.
10 11 12 |
# File 'lib/storing/inquirer.rb', line 10 def query_object @query_object end |
#store ⇒ Object (readonly)
Returns the value of attribute store.
10 11 12 |
# File 'lib/storing/inquirer.rb', line 10 def store @store end |
Class Method Details
.query(mapper, store, query_object) ⇒ Object
6 7 8 |
# File 'lib/storing/inquirer.rb', line 6 def self.query mapper, store, query_object new(mapper, store, query_object).query end |
Instance Method Details
#query(query_object) ⇒ Object
18 19 20 |
# File 'lib/storing/inquirer.rb', line 18 def query query_object mapper.parse store.query(query_object) end |