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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a779440daaa2b8711d4859471278b5e9a351d3ef
4
- data.tar.gz: 3cee35b5efec8c6cf320c80377bee421fe34cd09
3
+ metadata.gz: 56307553d80ec6abb32f2c1d38256f80eef6b1dd
4
+ data.tar.gz: 63b0b72ed489b585b0822a7697186e7241a8f820
5
5
  SHA512:
6
- metadata.gz: 50f4c988d13dfb2175c75579c2c91b6af2765c9e77f399aaf6f924e13a3402870142f30a40c96eef921d3ffa7f82f49a720de39722912c41f623b51e4e76f9fe
7
- data.tar.gz: 8585fb7853c6b6017f938431a87fd71b2adee57d563094ed80e381d2c8f010cdd740625efb7b3ee5066e9f05f47248cb93d56289f043fdd894f446dd9cc6d55d
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
@@ -1,3 +1,3 @@
1
1
  module LondonCab
2
- VERSION = '0.1.2'.freeze
2
+ VERSION = '0.1.3'.freeze
3
3
  end
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.2
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-26 00:00:00.000000000 Z
11
+ date: 2017-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday