Class: Quietus::Server
- Inherits:
-
Object
- Object
- Quietus::Server
- Defined in:
- lib/quietus.rb
Instance Attribute Summary collapse
-
#hostname ⇒ Object
readonly
Returns the value of attribute hostname.
-
#port ⇒ Object
readonly
Returns the value of attribute port.
Instance Method Summary collapse
-
#initialize(hostname = 'localhost', port = 2347) ⇒ Server
constructor
A new instance of Server.
Constructor Details
#initialize(hostname = 'localhost', port = 2347) ⇒ Server
Returns a new instance of Server.
8 9 10 11 12 13 |
# File 'lib/quietus.rb', line 8 def initialize(hostname = 'localhost', port = 2347) @hostname = hostname @port = port server &Proc.new end |
Instance Attribute Details
#hostname ⇒ Object (readonly)
Returns the value of attribute hostname.
6 7 8 |
# File 'lib/quietus.rb', line 6 def hostname @hostname end |
#port ⇒ Object (readonly)
Returns the value of attribute port.
6 7 8 |
# File 'lib/quietus.rb', line 6 def port @port end |