oodle 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/README.markdown +1 -1
  2. data/lib/oodle.rb +2 -3
  3. metadata +2 -2
@@ -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, :v2)
22
+ oodle = Oodle::API.new(API_KEY)
23
23
  oodle.region = 'chicago'
24
24
  oodle.category = 'sale'
25
25
  oodle.num = '15'
@@ -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 if version
49
- @version = :v2 unless version
48
+ @version = version
50
49
  @attributes = []
51
50
  @refinements = []
52
51
  @exclude_sources = []
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 1
8
- - 1
9
- version: 1.1.1
8
+ - 2
9
+ version: 1.1.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Kristan 'Krispy' Uccello