Class: Tinker::Engine::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/tinker/engine.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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

#hostObject

Returns the value of attribute host.



28
29
30
# File 'lib/tinker/engine.rb', line 28

def host
  @host
end

#portObject

Returns the value of attribute port.



28
29
30
# File 'lib/tinker/engine.rb', line 28

def port
  @port
end