Class: Multicast::Message

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#hostnameObject

Returns the value of attribute hostname.



3
4
5
# File 'lib/multicast/message.rb', line 3

def hostname
  @hostname
end

#ipObject

Returns the value of attribute ip.



3
4
5
# File 'lib/multicast/message.rb', line 3

def ip
  @ip
end

#messageObject

Returns the value of attribute message.



3
4
5
# File 'lib/multicast/message.rb', line 3

def message
  @message
end

#portObject

Returns the value of attribute port.



3
4
5
# File 'lib/multicast/message.rb', line 3

def port
  @port
end