Class: NovaposhtaApi::Configuration
- Inherits:
-
Object
- Object
- NovaposhtaApi::Configuration
- Defined in:
- lib/novaposhta_api/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.
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 |
# File 'lib/novaposhta_api/configuration.rb', line 7 def initialize @api_url = 'https://api.novaposhta.ua/v2.0/json/' @api_key = '' end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
5 6 7 |
# File 'lib/novaposhta_api/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/novaposhta_api/configuration.rb', line 5 def api_url @api_url end |