Class: Zaikio::Directory::Configuration

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

Constant Summary collapse

HOSTS =
{
  development: "https://hub.zaikio.test",
  test: "https://hub.zaikio.test",
  staging: "https://hub.staging.zaikio.com",
  sandbox: "https://hub.sandbox.zaikio.com",
  production: "https://hub.zaikio.com"
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



18
19
20
# File 'lib/zaikio/directory/configuration.rb', line 18

def initialize
  @environment = :sandbox
end

Instance Attribute Details

#environmentObject

Returns the value of attribute environment.



15
16
17
# File 'lib/zaikio/directory/configuration.rb', line 15

def environment
  @environment
end

#hostObject

Returns the value of attribute host.



14
15
16
# File 'lib/zaikio/directory/configuration.rb', line 14

def host
  @host
end

#loggerObject



22
23
24
# File 'lib/zaikio/directory/configuration.rb', line 22

def logger
  @logger ||= Logger.new($stdout)
end