rlyft 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lyft/api/availability/cost.rb +14 -0
- data/lib/lyft/api/availability/eta.rb +10 -0
- data/lib/lyft/api/availability/nearby_drivers.rb +10 -0
- data/lib/lyft/api/availability/ride_types.rb +10 -0
- data/lib/lyft/api/oauth/public_token.rb +5 -0
- data/lib/lyft/client.rb +6 -0
- data/lib/lyft/version.rb +1 -1
- data/lyft.gemspec +1 -0
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e30ad205ab2786789b29d6628a7e019b728c4004
|
4
|
+
data.tar.gz: 52ef840de85b6ab593e847be586a2293dc0c404c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7547028ed225fb54fa166120af7901097552b5ea6d5e538389197b63414a45cb4f58d9c75e56d458511d6cb021cdcd3360d576192c9ed7ae5d6c505f6e25cc21
|
7
|
+
data.tar.gz: 5b9742fff70a7d6e6c47017edda5f35ba3b83eb56cd3726fe7a9139bf9fa0eb8bbe96bbba8075e45843262db6ec0b8bc0e1bccaa60896bc6a858cf05b5912da3
|
@@ -1,6 +1,20 @@
|
|
1
1
|
module Lyft
|
2
2
|
module Api
|
3
3
|
module Availability
|
4
|
+
##
|
5
|
+
# Get Lyft costs
|
6
|
+
#
|
7
|
+
# @example
|
8
|
+
# client.cost start_lat: 37.7772,
|
9
|
+
# start_lng: -122.4233,
|
10
|
+
# end_lat: 37.7972,
|
11
|
+
# end_lng: -122.4533
|
12
|
+
#
|
13
|
+
# @param [Hash] args
|
14
|
+
# @option args [Float] :start_lat The latitude of starting point. (*required*)
|
15
|
+
# @option args [Float] :start_lng The longitude of starting point. (*required*)
|
16
|
+
# @option args [Float] :end_lat The latitude of the end point. (*required*)
|
17
|
+
# @option args [Float] :end_lng The longitude of the end point. (*required*)
|
4
18
|
def cost(args = {})
|
5
19
|
uri = Lyft.endpoint('/v1/cost')
|
6
20
|
options = {
|
@@ -1,6 +1,16 @@
|
|
1
1
|
module Lyft
|
2
2
|
module Api
|
3
3
|
module Availability
|
4
|
+
##
|
5
|
+
# Get eta for lyft driver to reach location
|
6
|
+
#
|
7
|
+
# @example
|
8
|
+
# client.eta lat: 37.7772,
|
9
|
+
# lng: -122.4233
|
10
|
+
#
|
11
|
+
# @param [Hash] args
|
12
|
+
# @option args [Float] :lat The latitude of pickup. (*required*)
|
13
|
+
# @option args [Float] :lng The longitude of pickup. (*required*)
|
4
14
|
def eta(args = {})
|
5
15
|
uri = Lyft.endpoint('/v1/eta')
|
6
16
|
options = {
|
@@ -1,6 +1,16 @@
|
|
1
1
|
module Lyft
|
2
2
|
module Api
|
3
3
|
module Availability
|
4
|
+
##
|
5
|
+
# Get positions of nearby drivers
|
6
|
+
#
|
7
|
+
# @example
|
8
|
+
# client.nearby_drivers lat: 37.7772,
|
9
|
+
# lng: -122.4233
|
10
|
+
#
|
11
|
+
# @param [Hash] args
|
12
|
+
# @option args [Float] :lat The latitude of pickup. (*required*)
|
13
|
+
# @option args [Float] :lng The longitude of pickup. (*required*)
|
4
14
|
def nearby_drivers(args = {})
|
5
15
|
uri = Lyft.endpoint('/v1/drivers')
|
6
16
|
options = {
|
@@ -1,6 +1,16 @@
|
|
1
1
|
module Lyft
|
2
2
|
module Api
|
3
3
|
module Availability
|
4
|
+
##
|
5
|
+
# Get available lyft ride types
|
6
|
+
#
|
7
|
+
# @example
|
8
|
+
# client.ride_types lat: 37.7772,
|
9
|
+
# lng: -122.4233
|
10
|
+
#
|
11
|
+
# @param [Hash] args
|
12
|
+
# @option args [Float] :lat The latitude of pickup. (*required*)
|
13
|
+
# @option args [Float] :lng The longitude of pickup. (*required*)
|
4
14
|
def ride_types(args = {})
|
5
15
|
uri = Lyft.endpoint('/v1/ridetypes')
|
6
16
|
options = {
|
data/lib/lyft/client.rb
CHANGED
data/lib/lyft/version.rb
CHANGED
data/lyft.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rlyft
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Taylor Scott
|
@@ -94,6 +94,20 @@ dependencies:
|
|
94
94
|
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: yard
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
97
111
|
description: Ruby wrapper for Lyft API.
|
98
112
|
email:
|
99
113
|
- t.skukx@gmail.com
|