Class: Lyft::Client

Inherits:
Object
  • Object
show all
Includes:
Api::Availability, Api::Oauth, Api::Rides, Api::Users
Defined in:
lib/lyft/client.rb

Overview

Client for making Lyft api requests

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Api::Users

#profile, #ride_history

Methods included from Api::Rides

#ride, #ride_cancel, #ride_details, #ride_rating_and_tipping, #ride_receipt

Methods included from Api::Availability

#cost, #eta, #nearby_drivers, #ride_types

Methods included from Api::Oauth

#public_token

Constructor Details

#initialize {|_self| ... } ⇒ Client

Returns a new instance of Client.

Yields:

  • (_self)

Yield Parameters:

  • _self (Lyft::Client)

    the object that the method was called on



17
18
19
# File 'lib/lyft/client.rb', line 17

def initialize
  yield self
end

Instance Attribute Details

#client_idString

The client id for lyft app.

Returns:

  • (String)

    the current value of client_id



8
9
10
# File 'lib/lyft/client.rb', line 8

def client_id
  @client_id
end

#client_secretString

The client secret for lyft app.

Returns:

  • (String)

    the current value of client_secret



8
9
10
# File 'lib/lyft/client.rb', line 8

def client_secret
  @client_secret
end