Module: Fias::Query
- Defined in:
- lib/fias/query.rb,
lib/fias/query/finder.rb,
lib/fias/query/params.rb,
lib/fias/query/estimate.rb
Defined Under Namespace
Classes: Estimate, Finder, Params
Instance Attribute Summary collapse
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Instance Method Summary collapse
Instance Attribute Details
#params ⇒ Object (readonly)
Returns the value of attribute params.
8 9 10 |
# File 'lib/fias/query.rb', line 8 def params @params end |
Instance Method Details
#initialize(params) ⇒ Object
3 4 5 6 |
# File 'lib/fias/query.rb', line 3 def initialize(params) @params = Params.new(params) @finder = Finder.new(@params, method(:find)) end |
#perform ⇒ Object
10 11 12 13 |
# File 'lib/fias/query.rb', line 10 def perform assumption = @finder.assumption estimate(assumption) end |