Class: Zaikio::Directory::Configuration
- Inherits:
-
Object
- Object
- Zaikio::Directory::Configuration
- 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
-
#environment ⇒ Object
Returns the value of attribute environment.
-
#host ⇒ Object
Returns the value of attribute host.
- #logger ⇒ Object
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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
#environment ⇒ Object
Returns the value of attribute environment.
15 16 17 |
# File 'lib/zaikio/directory/configuration.rb', line 15 def environment @environment end |
#host ⇒ Object
Returns the value of attribute host.
14 15 16 |
# File 'lib/zaikio/directory/configuration.rb', line 14 def host @host end |
#logger ⇒ Object
22 23 24 |
# File 'lib/zaikio/directory/configuration.rb', line 22 def logger @logger ||= Logger.new($stdout) end |