Module: Oeffi
- Includes:
- Queries
- Defined in:
- lib/oeffi.rb,
lib/oeffi/version.rb
Defined Under Namespace
Classes: Configuration
Constant Summary collapse
- VERSION =
"0.0.9"
Class Attribute Summary collapse
-
.configuration ⇒ Object
Returns the value of attribute configuration.
Class Method Summary collapse
- .autocomplete(string = "", location = {}) ⇒ Object
- .configure {|configuration| ... } ⇒ Object
- .find_trips(opts) ⇒ Object
- .provider ⇒ Object
Methods included from Queries
Class Attribute Details
.configuration ⇒ Object
Returns the value of attribute configuration.
10 11 12 |
# File 'lib/oeffi.rb', line 10 def configuration @configuration end |
Class Method Details
.autocomplete(string = "", location = {}) ⇒ Object
16 17 18 |
# File 'lib/oeffi.rb', line 16 def autocomplete(string="", location={}) Oeffi::AutocompleteQuery.new(string, location[:lat], location[:lon]).perform end |
.configure {|configuration| ... } ⇒ Object
11 12 13 14 |
# File 'lib/oeffi.rb', line 11 def configure(&block) self.configuration ||= Configuration.new yield(configuration) end |
.find_trips(opts) ⇒ Object
20 21 22 |
# File 'lib/oeffi.rb', line 20 def find_trips(opts) Oeffi::TripQuery.new(opts).perform end |
.provider ⇒ Object
24 25 26 |
# File 'lib/oeffi.rb', line 24 def provider Oeffi.configuration.provider end |