london_cab 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/london_cab/api/endpoints/request.rb +10 -0
- data/lib/london_cab/api/endpoints/ride.rb +24 -0
- data/lib/london_cab/version.rb +1 -1
- 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: 56307553d80ec6abb32f2c1d38256f80eef6b1dd
|
4
|
+
data.tar.gz: 63b0b72ed489b585b0822a7697186e7241a8f820
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0abca428e828ad7903de6b5a7403f708a52b1d11a7c095b720e2fb754b0996d5c4965bbe2ca9ea4815090599e42d1c6642feb793e56441b03b29df9691126dc
|
7
|
+
data.tar.gz: 321956c6aa7cf3d5b9b33d18c047c30aaabc46765575a4fb565fce2b178422287eab62eeae004467039206c81410bf42bd369ca5e145b4a76b9da5550f3faf06
|
@@ -11,6 +11,16 @@ module LondonCab
|
|
11
11
|
'DropoffLat' => dropoff_latitude,
|
12
12
|
'DropoffLong' => dropoff_longitude)['Result']
|
13
13
|
end
|
14
|
+
|
15
|
+
def request_later(pickup_latitude:,
|
16
|
+
pickup_longitude:,
|
17
|
+
dropoff_latitude:,
|
18
|
+
dropoff_longitude:)
|
19
|
+
post('RequestRide', 'PickupLat' => pickup_latitude,
|
20
|
+
'PickupLong' => pickup_longitude,
|
21
|
+
'DropoffLat' => dropoff_latitude,
|
22
|
+
'DropoffLong' => dropoff_longitude)['Result']
|
23
|
+
end
|
14
24
|
end
|
15
25
|
end
|
16
26
|
end
|
@@ -18,6 +18,30 @@ module LondonCab
|
|
18
18
|
'CustomerEmail' => customer_email)['Result']
|
19
19
|
end
|
20
20
|
|
21
|
+
def ride_later(trip_type_id:,
|
22
|
+
pickup_date_time: nil,
|
23
|
+
dropoff_date_time: nil,
|
24
|
+
comments: nil,
|
25
|
+
pickup_latitude:,
|
26
|
+
pickup_longitude:,
|
27
|
+
dropoff_latitude:,
|
28
|
+
dropoff_longitude:,
|
29
|
+
customer_name:,
|
30
|
+
customer_phone:,
|
31
|
+
customer_email:)
|
32
|
+
post('ConfirmBookLaterRide', 'TripTypeID' => trip_type_id,
|
33
|
+
'PickupDate' => pickup_date_time,
|
34
|
+
'DropoffDate' => dropoff_date_time,
|
35
|
+
'Comments' => comments,
|
36
|
+
'PickupLat' => pickup_latitude,
|
37
|
+
'PickupLong' => pickup_longitude,
|
38
|
+
'DropoffLat' => dropoff_latitude,
|
39
|
+
'DropoffLong' => dropoff_longitude,
|
40
|
+
'CustomerName' => customer_name,
|
41
|
+
'CustomerPhone' => customer_phone,
|
42
|
+
'CustomerEmail' => customer_email)['Result']
|
43
|
+
end
|
44
|
+
|
21
45
|
def ride_cancel(ride_id:)
|
22
46
|
post("CancelRide/#{ride_id}")['Result']['IsCanceled']
|
23
47
|
end
|
data/lib/london_cab/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: london_cab
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ramy Aboul Naga
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-04-
|
11
|
+
date: 2017-04-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|