Class: Plurall::Configuration
- Inherits:
-
Object
- Object
- Plurall::Configuration
- Defined in:
- lib/plurall/configuration.rb
Overview
Instance Attribute Summary collapse
-
#client_id ⇒ Object
Returns the value of attribute client_id.
-
#client_secret ⇒ Object
Returns the value of attribute client_secret.
-
#id_application ⇒ Object
Returns the value of attribute id_application.
-
#id_auth_url ⇒ Object
Returns the value of attribute id_auth_url.
-
#id_graphql_url ⇒ Object
Returns the value of attribute id_graphql_url.
-
#me_url ⇒ Object
Returns the value of attribute me_url.
-
#oauth_authorize_url ⇒ Object
Returns the value of attribute oauth_authorize_url.
-
#oauth_token_url ⇒ Object
Returns the value of attribute oauth_token_url.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(options = {}) ⇒ Configuration
18 19 20 21 22 23 24 25 26 27 |
# File 'lib/plurall/configuration.rb', line 18 def initialize( = {}) @client_id = .dig :client_id @client_secret = .dig :client_secret @oauth_authorize_url = .dig(:oauth_authorize_url) || "https://ms-api.plurall.net/oauth/authorize" @oauth_token_url = .dig(:oauth_token_url) || "https://ms-api.plurall.net/oauth/token" @me_url = .dig(:me_url) || "https://ms-api.plurall.net/me" @id_application = .dig :id_application @id_auth_url = .dig(:id_auth_url) || "https://ms-api.plurall.net/identity/data-exchange/auth" @id_graphql_url = .dig(:id_graphql_url) || "https://ms-api.plurall.net/identity/data-exchange/v2/graphql" end |
Instance Attribute Details
#client_id ⇒ Object
Returns the value of attribute client_id.
14 15 16 |
# File 'lib/plurall/configuration.rb', line 14 def client_id @client_id end |
#client_secret ⇒ Object
Returns the value of attribute client_secret.
14 15 16 |
# File 'lib/plurall/configuration.rb', line 14 def client_secret @client_secret end |
#id_application ⇒ Object
Returns the value of attribute id_application.
16 17 18 |
# File 'lib/plurall/configuration.rb', line 16 def id_application @id_application end |
#id_auth_url ⇒ Object
Returns the value of attribute id_auth_url.
16 17 18 |
# File 'lib/plurall/configuration.rb', line 16 def id_auth_url @id_auth_url end |
#id_graphql_url ⇒ Object
Returns the value of attribute id_graphql_url.
16 17 18 |
# File 'lib/plurall/configuration.rb', line 16 def id_graphql_url @id_graphql_url end |
#me_url ⇒ Object
Returns the value of attribute me_url.
15 16 17 |
# File 'lib/plurall/configuration.rb', line 15 def me_url @me_url end |
#oauth_authorize_url ⇒ Object
Returns the value of attribute oauth_authorize_url.
15 16 17 |
# File 'lib/plurall/configuration.rb', line 15 def @oauth_authorize_url end |
#oauth_token_url ⇒ Object
Returns the value of attribute oauth_token_url.
15 16 17 |
# File 'lib/plurall/configuration.rb', line 15 def oauth_token_url @oauth_token_url end |