Class: Verndari::Configuration
- Inherits:
-
Object
- Object
- Verndari::Configuration
- Defined in:
- lib/verndari/configuration.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 9 |
# File 'lib/verndari/configuration.rb', line 5 def initialize @host = nil @email = nil @base_url = 'http://0.0.0.0:3001/api' end |
Instance Attribute Details
#email ⇒ Object
16 17 18 19 |
# File 'lib/verndari/configuration.rb', line 16 def email # raise Errors::Configuration, "Verndari email key is missing!" unless @email @email end |
#host ⇒ Object
11 12 13 14 |
# File 'lib/verndari/configuration.rb', line 11 def host # raise Errors::Configuration, "Verndari host key is missing!" unless @host @host end |