Class: Multicast::Message
- Inherits:
-
Object
- Object
- Multicast::Message
- Defined in:
- lib/multicast/message.rb
Instance Attribute Summary collapse
-
#hostname ⇒ Object
Returns the value of attribute hostname.
-
#ip ⇒ Object
Returns the value of attribute ip.
-
#message ⇒ Object
Returns the value of attribute message.
-
#port ⇒ Object
Returns the value of attribute port.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Message
constructor
A new instance of Message.
Constructor Details
#initialize(opts = {}) ⇒ Message
Returns a new instance of Message.
5 6 7 8 9 10 |
# File 'lib/multicast/message.rb', line 5 def initialize(opts={}) @message = opts[:message] @hostname = opts[:hostname] @ip = opts[:ip] @port = opts[:port] end |
Instance Attribute Details
#hostname ⇒ Object
Returns the value of attribute hostname.
3 4 5 |
# File 'lib/multicast/message.rb', line 3 def hostname @hostname end |
#ip ⇒ Object
Returns the value of attribute ip.
3 4 5 |
# File 'lib/multicast/message.rb', line 3 def ip @ip end |
#message ⇒ Object
Returns the value of attribute message.
3 4 5 |
# File 'lib/multicast/message.rb', line 3 def @message end |
#port ⇒ Object
Returns the value of attribute port.
3 4 5 |
# File 'lib/multicast/message.rb', line 3 def port @port end |