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.
- checksums.yaml +4 -4
- data/lib/version.rb +1 -1
- data/lib/zaui.rb +3 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf52a7d1d0927922ebcef3f316195d5c3ad29d8d
|
4
|
+
data.tar.gz: 00e858cfd9388aa55cfc4a2682ae41c751b247ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 962fdaf7721017e57cc04f5d954819a0063c0499bb43194c50ce95fad20c639f0b73653630313c18908faf842ff27ceb8a1050ccb8b810a9735bfd01a98f6973
|
7
|
+
data.tar.gz: 6a43d3383d62cba66f57170e7f693f0cac5dbc3e93e2eff9474a54d915526ca0d979072b9359d70aafad75b7ae56dbd691bd7c19a8e5585cb5f4ecbd741f4c90
|
data/lib/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
VERSION = '0.1.
|
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.
|
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-
|
11
|
+
date: 2015-09-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|