Class: Eclix::Server

Inherits:
Object
  • Object
show all
Defined in:
lib/eclix/publication_creator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(port = 8080, host = 'localhost') ⇒ Server

Returns a new instance of Server.



107
108
109
110
# File 'lib/eclix/publication_creator.rb', line 107

def initialize(port=8080, host='localhost')
  @host=host
  @port=port
end

Instance Attribute Details

#hostObject (readonly)

Returns the value of attribute host.



106
107
108
# File 'lib/eclix/publication_creator.rb', line 106

def host
  @host
end

#portObject (readonly)

Returns the value of attribute port.



106
107
108
# File 'lib/eclix/publication_creator.rb', line 106

def port
  @port
end