Class: Mack::Notifier::Adapters::XmppMsgContainer
- Defined in:
- lib/mack-notifier/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.
8 9 10 11 |
# File 'lib/mack-notifier/adapters/xmpp_msg.rb', line 8 def initialize self. = [] self.recipients = [] end |
Instance Attribute Details
#messages ⇒ Object
Returns the value of attribute messages.
6 7 8 |
# File 'lib/mack-notifier/adapters/xmpp_msg.rb', line 6 def @messages end |
#recipients ⇒ Object
Returns the value of attribute recipients.
7 8 9 |
# File 'lib/mack-notifier/adapters/xmpp_msg.rb', line 7 def recipients @recipients end |
Instance Method Details
#find_message_by_recipient(rcpt) ⇒ Object
13 14 15 |
# File 'lib/mack-notifier/adapters/xmpp_msg.rb', line 13 def (rcpt) self..find { |x| x.to.to_s == rcpt.to_s } end |