Class: Lyft::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/lyft/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



17
18
19
20
21
22
23
# File 'lib/lyft/configuration.rb', line 17

def initialize
  @api = "https://api.lyft.com"
  @api_version = "/v1"
  @site = "https://api.lyft.com"
  @token_url = "/oauth/token"
  @authorize_url = "/oauth/authorize"
end

Instance Attribute Details

#apiObject

Returns the value of attribute api.



3
4
5
# File 'lib/lyft/configuration.rb', line 3

def api
  @api
end

#api_versionObject

Returns the value of attribute api_version.



3
4
5
# File 'lib/lyft/configuration.rb', line 3

def api_version
  @api_version
end

#authorize_urlObject

Returns the value of attribute authorize_url.



3
4
5
# File 'lib/lyft/configuration.rb', line 3

def authorize_url
  @authorize_url
end

#client_idObject Also known as: api_key

Returns the value of attribute client_id.



3
4
5
# File 'lib/lyft/configuration.rb', line 3

def client_id
  @client_id
end

#client_secretObject Also known as: secret_key

Returns the value of attribute client_secret.



3
4
5
# File 'lib/lyft/configuration.rb', line 3

def client_secret
  @client_secret
end

#default_profile_fieldsObject

Returns the value of attribute default_profile_fields.



3
4
5
# File 'lib/lyft/configuration.rb', line 3

def default_profile_fields
  @default_profile_fields
end

#redirect_uriObject

Returns the value of attribute redirect_uri.



3
4
5
# File 'lib/lyft/configuration.rb', line 3

def redirect_uri
  @redirect_uri
end

#scopeObject

Returns the value of attribute scope.



3
4
5
# File 'lib/lyft/configuration.rb', line 3

def scope
  @scope
end

#siteObject

Returns the value of attribute site.



3
4
5
# File 'lib/lyft/configuration.rb', line 3

def site
  @site
end

#token_urlObject

Returns the value of attribute token_url.



3
4
5
# File 'lib/lyft/configuration.rb', line 3

def token_url
  @token_url
end