Module: Oodle
- Defined in:
- lib/oodle.rb
Overview
Oodle Module
Defined Under Namespace
Classes: API
Constant Summary collapse
- REGIONS_URL =
"http://developer.oodle.com/files/xml/oodle_regions.xml"
- CATEGORIES_URL =
"http://developer.oodle.com/files/xml/oodle_categories.xml"
- VERSION_URLS =
{:v2=>"http://api.oodle.com/api/v2/listings"}
- RESPONSE_FORMATS =
{ :xml=>'xml', # - output is formatted in plain old XML :json=>'json' # - output is formatted in JSON (JavaScript Object Notation) }
- SORT_VALUES =
{ :ctime=>'ctime',# - by listing's creation time - oldest to newest :ctime_reverse=>'ctime_reverse',# - by listing's creation time, reverse order - newest to oldest :distance=>'distance',# - by distance from "location" value above - closest to farthest :distance_reverse=>'distance_reverse',# - by distance from "location" parameter, reverse order - farthest to closest :eventdate=>'eventdate',# - by date of event (e.g. tickets listings) - in chronological order :eventdate_reverse=>'eventdate_reverse',# - by date of event - in reverse chronological order :price=>'price',# - by listing's price - lowest to highest :price_reverse=>'price_reverse' # - by listing's price, reverse order - highest to lowest }