Class: Pinterest::Configuration
- Inherits:
-
Object
- Object
- Pinterest::Configuration
- Defined in:
- lib/pinterest/configuration.rb
Constant Summary collapse
- PINTEREST_BASE_URL =
"https://api.pinterest.com/v5"- PINTEREST_AUTH_URL =
"https://www.pinterest.com/oauth/"
Instance Attribute Summary collapse
-
#access_token ⇒ Object
Returns the value of attribute access_token.
-
#auth_url ⇒ Object
Returns the value of attribute auth_url.
-
#base_url ⇒ Object
Returns the value of attribute base_url.
-
#client_id ⇒ Object
Returns the value of attribute client_id.
-
#client_secret ⇒ Object
Returns the value of attribute client_secret.
-
#default_scope ⇒ Object
Returns the value of attribute default_scope.
-
#open_timeout ⇒ Object
Returns the value of attribute open_timeout.
-
#redirect_uri ⇒ Object
Returns the value of attribute redirect_uri.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
9 10 11 12 13 14 |
# File 'lib/pinterest/configuration.rb', line 9 def initialize @base_url = PINTEREST_BASE_URL @auth_url = PINTEREST_AUTH_URL @timeout = 30 @open_timeout = 10 end |
Instance Attribute Details
#access_token ⇒ Object
Returns the value of attribute access_token.
6 7 8 |
# File 'lib/pinterest/configuration.rb', line 6 def access_token @access_token end |
#auth_url ⇒ Object
Returns the value of attribute auth_url.
6 7 8 |
# File 'lib/pinterest/configuration.rb', line 6 def auth_url @auth_url end |
#base_url ⇒ Object
Returns the value of attribute base_url.
6 7 8 |
# File 'lib/pinterest/configuration.rb', line 6 def base_url @base_url end |
#client_id ⇒ Object
Returns the value of attribute client_id.
6 7 8 |
# File 'lib/pinterest/configuration.rb', line 6 def client_id @client_id end |
#client_secret ⇒ Object
Returns the value of attribute client_secret.
6 7 8 |
# File 'lib/pinterest/configuration.rb', line 6 def client_secret @client_secret end |
#default_scope ⇒ Object
Returns the value of attribute default_scope.
6 7 8 |
# File 'lib/pinterest/configuration.rb', line 6 def default_scope @default_scope end |
#open_timeout ⇒ Object
Returns the value of attribute open_timeout.
6 7 8 |
# File 'lib/pinterest/configuration.rb', line 6 def open_timeout @open_timeout end |
#redirect_uri ⇒ Object
Returns the value of attribute redirect_uri.
6 7 8 |
# File 'lib/pinterest/configuration.rb', line 6 def redirect_uri @redirect_uri end |
#timeout ⇒ Object
Returns the value of attribute timeout.
6 7 8 |
# File 'lib/pinterest/configuration.rb', line 6 def timeout @timeout end |