Class: Dragoon::Network

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Network

Returns a new instance of Network.



5
6
7
8
9
10
11
# File 'lib/dragoon/network.rb', line 5

def initialize(options={})
  @name = options[:name]
  @port = options[:port]
  @server = options[:server]
  @socket = options[:socket]
  @channels = options[:channels]
end

Instance Attribute Details

#channelsObject

Returns the value of attribute channels.



3
4
5
# File 'lib/dragoon/network.rb', line 3

def channels
  @channels
end

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/dragoon/network.rb', line 3

def name
  @name
end

#portObject

Returns the value of attribute port.



3
4
5
# File 'lib/dragoon/network.rb', line 3

def port
  @port
end

#serverObject

Returns the value of attribute server.



3
4
5
# File 'lib/dragoon/network.rb', line 3

def server
  @server
end

#socketObject

Returns the value of attribute socket.



3
4
5
# File 'lib/dragoon/network.rb', line 3

def socket
  @socket
end