adility 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/adility.rb +1 -3
- data/lib/adility/version.rb +1 -1
- metadata +1 -1
data/lib/adility.rb
CHANGED
@@ -15,7 +15,7 @@ module Adility
|
|
15
15
|
@api_key = args[0]
|
16
16
|
@conn = Faraday.new(:url => "https://testapi.offersdb.com") do |builder|
|
17
17
|
builder.adapter Faraday.default_adapter
|
18
|
-
builder.adapter :logger
|
18
|
+
builder.adapter :logger if options[:debug] == true
|
19
19
|
builder.use Faraday::Response::ParseJson
|
20
20
|
builder.use Faraday::Response::Mashify
|
21
21
|
end
|
@@ -31,8 +31,6 @@ module Adility
|
|
31
31
|
req.headers['X-OFFERSDB-API-KEY'] = api_key
|
32
32
|
req.params = options
|
33
33
|
end
|
34
|
-
require 'pp'
|
35
|
-
pp response.body
|
36
34
|
total_pages = response.body.send :total_pages
|
37
35
|
total_items = response.body.send :total_items
|
38
36
|
page = response.body.send :page
|
data/lib/adility/version.rb
CHANGED