caseblocks_api 0.2.18 → 0.2.19
Sign up to get free protection for your applications and to get access to all the features.
- data/caseblocks_api.gemspec +1 -1
- data/lib/caseblocks_api.rb +2 -2
- metadata +1 -1
data/caseblocks_api.gemspec
CHANGED
data/lib/caseblocks_api.rb
CHANGED
@@ -36,6 +36,7 @@ module CaseblocksAPI
|
|
36
36
|
response_hash = {:body => response.body, :code => response.code, :message => response.message, :headers => response.headers.inspect}
|
37
37
|
raise CaseblocksAPI::CaseCreationError.new("Unable to create case - received response code #{response.code}", response_hash)
|
38
38
|
end
|
39
|
+
response
|
39
40
|
end
|
40
41
|
|
41
42
|
def find_or_create_case(params, case_type=nil)
|
@@ -44,9 +45,8 @@ module CaseblocksAPI
|
|
44
45
|
if response.code != 201
|
45
46
|
response_hash = {:body => response.body, :code => response.code, :message => response.message, :headers => response.headers.inspect}
|
46
47
|
raise CaseblocksAPI::CaseCreationError.new("Unable to create case - received response code #{response.code}", response_hash)
|
47
|
-
else
|
48
|
-
return response["message"]
|
49
48
|
end
|
49
|
+
response
|
50
50
|
end
|
51
51
|
|
52
52
|
def create_message(params)
|