Class: Hithorizons::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



7
8
9
10
11
# File 'lib/hithorizons/configuration.rb', line 7

def initialize
  @api_key = ENV['HITHORIZONS_API_KEY']
  @invoicing_api_key = ENV['HITHORIZONS_INVOICING_API_KEY']
  @api_url = 'https://api.hithorizons.com'
end

Instance Attribute Details

#api_keyObject

Returns the value of attribute api_key.



5
6
7
# File 'lib/hithorizons/configuration.rb', line 5

def api_key
  @api_key
end

#api_urlObject

Returns the value of attribute api_url.



5
6
7
# File 'lib/hithorizons/configuration.rb', line 5

def api_url
  @api_url
end

#invoicing_api_keyObject

Returns the value of attribute invoicing_api_key.



5
6
7
# File 'lib/hithorizons/configuration.rb', line 5

def invoicing_api_key
  @invoicing_api_key
end