zaui_zapi 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/version.rb +1 -1
  3. data/lib/zaui.rb +3 -2
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 28a5f967905ef9acf8bcc023923cc0bf3e3cdc02
4
- data.tar.gz: 545e96bd6999491c663791491db4bc1408ad6a4e
3
+ metadata.gz: bf52a7d1d0927922ebcef3f316195d5c3ad29d8d
4
+ data.tar.gz: 00e858cfd9388aa55cfc4a2682ae41c751b247ee
5
5
  SHA512:
6
- metadata.gz: 577d3194c72ee66c29a5a209403a73d06f87582c9df9940343a5babe8b09565061f886f36ecc1b18d9047afd1edfaf005c0be0c27abebf8477c78d8494a29bfc
7
- data.tar.gz: f6944005b3d1ef6f9fa94c32377e7143d920dc698caf1bd7f097404d7355d0e3903c0a5df87965bb5f5db5f34fd7976556724f0eaac2efa5e30f6b0537ad6fa5
6
+ metadata.gz: 962fdaf7721017e57cc04f5d954819a0063c0499bb43194c50ce95fad20c639f0b73653630313c18908faf842ff27ceb8a1050ccb8b810a9735bfd01a98f6973
7
+ data.tar.gz: 6a43d3383d62cba66f57170e7f693f0cac5dbc3e93e2eff9474a54d915526ca0d979072b9359d70aafad75b7ae56dbd691bd7c19a8e5585cb5f4ecbd741f4c90
data/lib/version.rb CHANGED
@@ -1 +1 @@
1
- VERSION = '0.1.5'
1
+ VERSION = '0.1.6'
data/lib/zaui.rb CHANGED
@@ -20,13 +20,14 @@ class Zaui
20
20
  raw = _zapi(xml.get_activity_details_by_activity_id(id)).try(:[],'activity')
21
21
  end
22
22
 
23
- def add_activity_to_cart id:, date:, passengers: {adults: 0, children: 0, infants: 0}
23
+ def add_activity_to_cart id:, date:, passengers: {adults: 0, children: 0, infants: 0}, location_id: nil
24
24
  hash = {
25
25
  activity_id: id,
26
26
  activity_date: date,
27
27
  adults: passengers[:adults],
28
28
  children: passengers[:children],
29
- infants: passengers[:infants]
29
+ infants: passengers[:infants],
30
+ pickup_location_id: location_id
30
31
  }
31
32
 
32
33
  raw = _zapi(xml.add_activity_to_cart(hash: hash))
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zaui_zapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shane Kretzmann
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-19 00:00:00.000000000 Z
11
+ date: 2015-09-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest