marcguyer-cheddargetter-client 0.2.0 → 0.2.1
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.
- data/VERSION.yml +1 -1
- data/cheddargetter-client.gemspec +1 -1
- data/lib/cheddargetter-client.rb +0 -10
- metadata +1 -1
data/VERSION.yml
CHANGED
data/lib/cheddargetter-client.rb
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
require 'rubygems'
|
|
2
2
|
require 'httparty'
|
|
3
3
|
require 'libxml'
|
|
4
|
-
require 'pp'
|
|
5
|
-
require 'json'
|
|
6
4
|
|
|
7
5
|
module CheddarGetter
|
|
8
6
|
|
|
@@ -136,10 +134,6 @@ module CheddarGetter
|
|
|
136
134
|
|
|
137
135
|
end
|
|
138
136
|
|
|
139
|
-
def to_json
|
|
140
|
-
return self.to_a.to_json
|
|
141
|
-
end
|
|
142
|
-
|
|
143
137
|
def plan(code = nil)
|
|
144
138
|
raise ArgumentException 'Can\'t get a plan from a response that isn\'t of type \'plans\'' if @responseType != 'plans'
|
|
145
139
|
raise 'This response contains more than one plan so you need to provide the code for the plan you wish to get' if code.blank? && @document.root.children.length > 1
|
|
@@ -239,8 +233,4 @@ module CheddarGetter
|
|
|
239
233
|
|
|
240
234
|
end
|
|
241
235
|
|
|
242
|
-
class ResponseException < Exception
|
|
243
|
-
|
|
244
|
-
end
|
|
245
|
-
|
|
246
236
|
end
|