fanforce 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/fanforce/errors.rb +2 -2
- data/lib/fanforce/version.rb +1 -1
- metadata +1 -1
data/lib/fanforce/errors.rb
CHANGED
@@ -19,7 +19,7 @@ class Fanforce
|
|
19
19
|
end
|
20
20
|
|
21
21
|
def curl_command
|
22
|
-
case @request.method
|
22
|
+
case @request.send(:method)
|
23
23
|
when :get
|
24
24
|
"curl \"#{@path}?#{to_param(@query_params)}\""
|
25
25
|
when :post
|
@@ -29,7 +29,7 @@ class Fanforce
|
|
29
29
|
when :delete
|
30
30
|
"curl --request DELETE \"#{@path}?#{to_param(@query_params)}\""
|
31
31
|
else
|
32
|
-
"Could not create curl command because request method was unknown: #{@request.method}"
|
32
|
+
"Could not create curl command because request method was unknown: #{@request.send(:method)}"
|
33
33
|
end
|
34
34
|
end
|
35
35
|
def code() end
|
data/lib/fanforce/version.rb
CHANGED