thieso2-gattica 0.3.3.2 → 0.3.3.3
Sign up to get free protection for your applications and to get access to all the features.
- 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|
|