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.
Files changed (2) hide show
  1. data/lib/gattica.rb +4 -1
  2. 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#index=#{start_index}"
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|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thieso2-gattica
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3.2
4
+ version: 0.3.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rob Cameron