oodle 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +1 -1
- data/lib/oodle.rb +2 -3
- metadata +2 -2
data/README.markdown
CHANGED
@@ -19,7 +19,7 @@ key](http://developer.oodle.com/request-api-key) to get started.
|
|
19
19
|
|
20
20
|
API_KEY = '??????' # Request your API key at http://developer.oodle.com/request-api-key
|
21
21
|
|
22
|
-
oodle = Oodle::API.new(API_KEY
|
22
|
+
oodle = Oodle::API.new(API_KEY)
|
23
23
|
oodle.region = 'chicago'
|
24
24
|
oodle.category = 'sale'
|
25
25
|
oodle.num = '15'
|
data/lib/oodle.rb
CHANGED
@@ -43,10 +43,9 @@ module Oodle
|
|
43
43
|
class API
|
44
44
|
attr_accessor :key, :region, :q, :category, :attributes, :location, :radius, :start, :num, :sort, :refinements, :ctime_low, :ctime_high, :exclude_sources, :assisted_search, :format, :jsoncallback, :fetched, :version
|
45
45
|
|
46
|
-
def initialize(key,version)
|
46
|
+
def initialize(key,version=:v2)
|
47
47
|
@key = key
|
48
|
-
@version = version
|
49
|
-
@version = :v2 unless version
|
48
|
+
@version = version
|
50
49
|
@attributes = []
|
51
50
|
@refinements = []
|
52
51
|
@exclude_sources = []
|