Class: Tinker::Engine::Configuration
- Inherits:
-
Object
- Object
- Tinker::Engine::Configuration
- Defined in:
- lib/tinker/engine.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 ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
30 31 32 33 34 35 36 37 |
# File 'lib/tinker/engine.rb', line 30 def initialize { port: "6202", host: "0.0.0.0" }.each do |k, v| self.send("#{k}=", v) end end |
Instance Attribute Details
#host ⇒ Object
Returns the value of attribute host.
28 29 30 |
# File 'lib/tinker/engine.rb', line 28 def host @host end |
#port ⇒ Object
Returns the value of attribute port.
28 29 30 |
# File 'lib/tinker/engine.rb', line 28 def port @port end |