Class: Hinoki::Config
- Inherits:
-
Object
- Object
- Hinoki::Config
- Defined in:
- lib/hinoki/config.rb
Instance Attribute Summary collapse
-
#host ⇒ Object
Returns the value of attribute host.
-
#port ⇒ Object
Returns the value of attribute port.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
9 10 11 12 13 |
# File 'lib/hinoki/config.rb', line 9 def initialize @config = parse_config_file @host = @config['host'] @port = @config['port'] end |
Instance Attribute Details
#host ⇒ Object
Returns the value of attribute host.
7 8 9 |
# File 'lib/hinoki/config.rb', line 7 def host @host end |
#port ⇒ Object
Returns the value of attribute port.
7 8 9 |
# File 'lib/hinoki/config.rb', line 7 def port @port end |