Class: GustoApi::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_tokenObject

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_idObject

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_secretObject

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_urlObject

Returns the value of attribute redirect_url.



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

def redirect_url
  @redirect_url
end

#testingObject

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_uriObject



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