Class: Lyft::Configuration
- Inherits:
-
Object
- Object
- Lyft::Configuration
- Defined in:
- lib/lyft/configuration.rb
Instance Attribute Summary collapse
-
#api ⇒ Object
Returns the value of attribute api.
-
#api_version ⇒ Object
Returns the value of attribute api_version.
-
#authorize_url ⇒ Object
Returns the value of attribute authorize_url.
-
#client_id ⇒ Object
(also: #api_key)
Returns the value of attribute client_id.
-
#client_secret ⇒ Object
(also: #secret_key)
Returns the value of attribute client_secret.
-
#default_profile_fields ⇒ Object
Returns the value of attribute default_profile_fields.
-
#redirect_uri ⇒ Object
Returns the value of attribute redirect_uri.
-
#scope ⇒ Object
Returns the value of attribute scope.
-
#site ⇒ Object
Returns the value of attribute site.
-
#token_url ⇒ Object
Returns the value of attribute token_url.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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
#api ⇒ Object
Returns the value of attribute api.
3 4 5 |
# File 'lib/lyft/configuration.rb', line 3 def api @api end |
#api_version ⇒ Object
Returns the value of attribute api_version.
3 4 5 |
# File 'lib/lyft/configuration.rb', line 3 def api_version @api_version end |
#authorize_url ⇒ Object
Returns the value of attribute authorize_url.
3 4 5 |
# File 'lib/lyft/configuration.rb', line 3 def @authorize_url end |
#client_id ⇒ Object 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_secret ⇒ Object 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_fields ⇒ Object
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_uri ⇒ Object
Returns the value of attribute redirect_uri.
3 4 5 |
# File 'lib/lyft/configuration.rb', line 3 def redirect_uri @redirect_uri end |
#scope ⇒ Object
Returns the value of attribute scope.
3 4 5 |
# File 'lib/lyft/configuration.rb', line 3 def scope @scope end |
#site ⇒ Object
Returns the value of attribute site.
3 4 5 |
# File 'lib/lyft/configuration.rb', line 3 def site @site end |
#token_url ⇒ Object
Returns the value of attribute token_url.
3 4 5 |
# File 'lib/lyft/configuration.rb', line 3 def token_url @token_url end |