Module: Oeffi
- Includes:
- Queries
- Defined in:
- lib/oeffi.rb,
lib/oeffi/version.rb
Defined Under Namespace
Classes: Configuration
Constant Summary collapse
- VERSION =
"0.0.2"
Class Attribute Summary collapse
-
.configuration ⇒ Object
Returns the value of attribute configuration.
Class Method Summary collapse
- .autocomplete(string = "") ⇒ 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.
11 12 13 |
# File 'lib/oeffi.rb', line 11 def configuration @configuration end |
Class Method Details
.autocomplete(string = "") ⇒ Object
17 18 19 |
# File 'lib/oeffi.rb', line 17 def autocomplete(string="") Oeffi::AutocompleteQuery.new(string).perform end |
.configure {|configuration| ... } ⇒ Object
12 13 14 15 |
# File 'lib/oeffi.rb', line 12 def configure(&block) self.configuration ||= Configuration.new yield(configuration) end |
.find_trips(opts) ⇒ Object
21 22 23 |
# File 'lib/oeffi.rb', line 21 def find_trips(opts) Oeffi::TripQuery.new(opts).perform end |
.provider ⇒ Object
25 26 27 |
# File 'lib/oeffi.rb', line 25 def provider Oeffi.configuration.provider end |