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.
-
#pass ⇒ Object
Returns the value of attribute pass.
-
#port ⇒ Object
Returns the value of attribute port.
-
#user ⇒ Object
Returns the value of attribute user.
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 14 15 |
# File 'lib/hinoki/config.rb', line 9 def initialize @config = parse_config_file @host = @config['host'] @port = @config['port'] @user = @config['user'] @pass = @config['password'] 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 |
#pass ⇒ Object
Returns the value of attribute pass.
7 8 9 |
# File 'lib/hinoki/config.rb', line 7 def pass @pass end |
#port ⇒ Object
Returns the value of attribute port.
7 8 9 |
# File 'lib/hinoki/config.rb', line 7 def port @port end |
#user ⇒ Object
Returns the value of attribute user.
7 8 9 |
# File 'lib/hinoki/config.rb', line 7 def user @user end |