Class: Dragoon::Network
- Inherits:
-
Object
- Object
- Dragoon::Network
- Defined in:
- lib/dragoon/network.rb
Instance Attribute Summary collapse
-
#channels ⇒ Object
Returns the value of attribute channels.
-
#name ⇒ Object
Returns the value of attribute name.
-
#port ⇒ Object
Returns the value of attribute port.
-
#server ⇒ Object
Returns the value of attribute server.
-
#socket ⇒ Object
Returns the value of attribute socket.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Network
constructor
A new instance of Network.
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(={}) @name = [:name] @port = [:port] @server = [:server] @socket = [:socket] @channels = [:channels] end |
Instance Attribute Details
#channels ⇒ Object
Returns the value of attribute channels.
3 4 5 |
# File 'lib/dragoon/network.rb', line 3 def channels @channels end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/dragoon/network.rb', line 3 def name @name end |
#port ⇒ Object
Returns the value of attribute port.
3 4 5 |
# File 'lib/dragoon/network.rb', line 3 def port @port end |
#server ⇒ Object
Returns the value of attribute server.
3 4 5 |
# File 'lib/dragoon/network.rb', line 3 def server @server end |
#socket ⇒ Object
Returns the value of attribute socket.
3 4 5 |
# File 'lib/dragoon/network.rb', line 3 def socket @socket end |