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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5387bcd03848cc82eb4d43de5355a830825ab252
4
- data.tar.gz: 930f6d562dbd1f1df4ffc8087da655344ccab834
3
+ metadata.gz: e30ad205ab2786789b29d6628a7e019b728c4004
4
+ data.tar.gz: 52ef840de85b6ab593e847be586a2293dc0c404c
5
5
  SHA512:
6
- metadata.gz: 01dd62c99f9eb34162042a571c39c2a96120d4a2a2dffa3652dd918191be1081b9ac842f7ca31e733de275faf449574ff682d79982b2d93a481b613648e66240
7
- data.tar.gz: 93d6f9caac191b93c2ded4fd858b824b3f15d58f747dd9979ae9fdab4d5c8b18e1be477d83912d9da2e04b461896c1d44ed87bd1cb218e5d3902fcd7293fc4b4
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 = {
@@ -1,6 +1,11 @@
1
1
  module Lyft
2
2
  module Api
3
3
  module Oauth
4
+ ##
5
+ # Retrieve public oauth token.
6
+ #
7
+ # @todo Use same token until expires
8
+ #
4
9
  def public_token(renew = false)
5
10
  # return @public_token unless @public_token.nil? && !renew
6
11
 
data/lib/lyft/client.rb CHANGED
@@ -1,4 +1,10 @@
1
1
  module Lyft
2
+ ##
3
+ # Client for making Lyft api requests
4
+ #
5
+ # @attr [String] client_id The client id for lyft app.
6
+ # @attr [String] client_secret The client secret for lyft app.
7
+ #
2
8
  class Client
3
9
  include Api::Oauth
4
10
  include Api::Availability
data/lib/lyft/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lyft
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
data/lyft.gemspec CHANGED
@@ -34,4 +34,5 @@ Gem::Specification.new do |spec|
34
34
  spec.add_development_dependency "rake", "~> 10.0"
35
35
  spec.add_development_dependency "rspec"
36
36
  spec.add_development_dependency "pry"
37
+ spec.add_development_dependency "yard"
37
38
  end
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.0
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