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

Class Method Summary collapse

Methods included from Queries

get_type

Class Attribute Details

.configurationObject

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

Yields:



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

.providerObject



24
25
26
# File 'lib/oeffi.rb', line 24

def provider
  Oeffi.configuration.provider
end