Class: Hithorizons::Configuration
- Inherits:
-
Object
- Object
- Hithorizons::Configuration
- Defined in:
- lib/hithorizons/configuration.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#api_url ⇒ Object
Returns the value of attribute api_url.
-
#invoicing_api_key ⇒ Object
Returns the value of attribute invoicing_api_key.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_key ⇒ Object
Returns the value of attribute api_key.
5 6 7 |
# File 'lib/hithorizons/configuration.rb', line 5 def api_key @api_key end |
#api_url ⇒ Object
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_key ⇒ Object
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 |