Class: Verndari::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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

#emailObject



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

#hostObject



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