Class: BlabberMouth::Adapters::XmppMsgContainer
- Inherits:
-
Object
- Object
- BlabberMouth::Adapters::XmppMsgContainer
- Defined in:
- lib/blabber_mouth/adapters/xmpp_msg.rb
Instance Attribute Summary collapse
-
#messages ⇒ Object
Returns the value of attribute messages.
-
#recipients ⇒ Object
Returns the value of attribute recipients.
Instance Method Summary collapse
- #find_message_by_recipient(rcpt) ⇒ Object
-
#initialize ⇒ XmppMsgContainer
constructor
A new instance of XmppMsgContainer.
Constructor Details
#initialize ⇒ XmppMsgContainer
Returns a new instance of XmppMsgContainer.
7 8 9 10 |
# File 'lib/blabber_mouth/adapters/xmpp_msg.rb', line 7 def initialize self. = [] self.recipients = [] end |
Instance Attribute Details
#messages ⇒ Object
Returns the value of attribute messages.
5 6 7 |
# File 'lib/blabber_mouth/adapters/xmpp_msg.rb', line 5 def end |
#recipients ⇒ Object
Returns the value of attribute recipients.
6 7 8 |
# File 'lib/blabber_mouth/adapters/xmpp_msg.rb', line 6 def recipients @recipients end |
Instance Method Details
#find_message_by_recipient(rcpt) ⇒ Object
12 13 14 |
# File 'lib/blabber_mouth/adapters/xmpp_msg.rb', line 12 def (rcpt) self..find { |x| x.to.to_s == rcpt.to_s } end |