Class: GustoApi::Configuration
- Inherits:
-
Object
- Object
- GustoApi::Configuration
- Defined in:
- lib/gusto_api/configuration.rb
Instance Attribute Summary collapse
-
#api_token ⇒ Object
Returns the value of attribute api_token.
-
#client_id ⇒ Object
Returns the value of attribute client_id.
-
#client_secret ⇒ Object
Returns the value of attribute client_secret.
-
#redirect_url ⇒ Object
Returns the value of attribute redirect_url.
-
#testing ⇒ Object
Returns the value of attribute testing.
Instance Method Summary collapse
- #base_uri ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 |
# File 'lib/gusto_api/configuration.rb', line 5 def initialize self.testing = true end |
Instance Attribute Details
#api_token ⇒ Object
Returns the value of attribute api_token.
3 4 5 |
# File 'lib/gusto_api/configuration.rb', line 3 def api_token @api_token end |
#client_id ⇒ Object
Returns the value of attribute client_id.
3 4 5 |
# File 'lib/gusto_api/configuration.rb', line 3 def client_id @client_id end |
#client_secret ⇒ Object
Returns the value of attribute client_secret.
3 4 5 |
# File 'lib/gusto_api/configuration.rb', line 3 def client_secret @client_secret end |
#redirect_url ⇒ Object
Returns the value of attribute redirect_url.
3 4 5 |
# File 'lib/gusto_api/configuration.rb', line 3 def redirect_url @redirect_url end |
#testing ⇒ Object
Returns the value of attribute testing.
3 4 5 |
# File 'lib/gusto_api/configuration.rb', line 3 def testing @testing end |
Instance Method Details
#base_uri ⇒ Object
9 10 11 |
# File 'lib/gusto_api/configuration.rb', line 9 def base_uri testing ? 'https://api.gusto-demo.com/' : 'https://api.gusto.com/' end |