thieso2-gattica 0.3.3.2 → 0.3.3.3
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/lib/gattica.rb +4 -1
- metadata +1 -1
data/lib/gattica.rb
CHANGED
@@ -208,7 +208,10 @@ module Gattica
|
|
208
208
|
def build_query_string(args,profile)
|
209
209
|
output = "ids=ga:#{profile}&start-date=#{args[:start_date]}&end-date=#{args[:end_date]}"
|
210
210
|
if (start_index = args[:start_index].to_i) > 0
|
211
|
-
output += "&start
|
211
|
+
output += "&start-index=#{start_index}"
|
212
|
+
end
|
213
|
+
if (max_results = args[:max_results].to_i) > 0
|
214
|
+
output += "&max-results=#{max_results}"
|
212
215
|
end
|
213
216
|
unless args[:dimensions].empty?
|
214
217
|
output += '&dimensions=' + args[:dimensions].collect do |dimension|
|