Class: FractalApi::Configuration
- Inherits:
-
Object
- Object
- FractalApi::Configuration
- Defined in:
- lib/fractal_api/configuration.rb
Constant Summary collapse
- BASE_URLS =
{ production: 'https://apis.askfractal.com', sandbox: 'https://apis.julia-laces.co.uk' }.freeze
- AUTH_URLS =
{ production: 'https://auth.askfractal.com', sandbox: 'https://auth.julia-laces.co.uk' }.freeze
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#debug ⇒ Object
Returns the value of attribute debug.
-
#environment ⇒ Object
Returns the value of attribute environment.
-
#partner_id ⇒ Object
Returns the value of attribute partner_id.
Instance Method Summary collapse
- #auth_url ⇒ Object
- #base_url ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
16 17 18 19 20 21 |
# File 'lib/fractal_api/configuration.rb', line 16 def initialize @api_key = '' @partner_id = '' @environment = :sandbox # can be either :sandbox or :production @debug = false end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
14 15 16 |
# File 'lib/fractal_api/configuration.rb', line 14 def api_key @api_key end |
#debug ⇒ Object
Returns the value of attribute debug.
14 15 16 |
# File 'lib/fractal_api/configuration.rb', line 14 def debug @debug end |
#environment ⇒ Object
Returns the value of attribute environment.
14 15 16 |
# File 'lib/fractal_api/configuration.rb', line 14 def environment @environment end |
#partner_id ⇒ Object
Returns the value of attribute partner_id.
14 15 16 |
# File 'lib/fractal_api/configuration.rb', line 14 def partner_id @partner_id end |