Class: Quietus::Server

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#hostnameObject (readonly)

Returns the value of attribute hostname.



6
7
8
# File 'lib/quietus.rb', line 6

def hostname
  @hostname
end

#portObject (readonly)

Returns the value of attribute port.



6
7
8
# File 'lib/quietus.rb', line 6

def port
  @port
end