Class: Eclix::Server
- Inherits:
-
Object
- Object
- Eclix::Server
- Defined in:
- lib/eclix/publication_creator.rb
Instance Attribute Summary collapse
-
#host ⇒ Object
readonly
Returns the value of attribute host.
-
#port ⇒ Object
readonly
Returns the value of attribute port.
Instance Method Summary collapse
-
#initialize(port = 8080, host = 'localhost') ⇒ Server
constructor
A new instance of Server.
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
#host ⇒ Object (readonly)
Returns the value of attribute host.
106 107 108 |
# File 'lib/eclix/publication_creator.rb', line 106 def host @host end |
#port ⇒ Object (readonly)
Returns the value of attribute port.
106 107 108 |
# File 'lib/eclix/publication_creator.rb', line 106 def port @port end |