Module: HasMessages::InstanceMethods
- Defined in:
- lib/has_messages.rb
Instance Method Summary collapse
-
#sent_messages ⇒ Object
Composed messages that have already been sent.
-
#unsent_messages ⇒ Object
Composed messages that have not yet been sent.
Instance Method Details
#sent_messages ⇒ Object
Composed messages that have already been sent. These consists of all messages that are currently in the “queued” or “sent” states.
64 65 66 |
# File 'lib/has_messages.rb', line 64 def .with_states(:queued, :sent) end |
#unsent_messages ⇒ Object
Composed messages that have not yet been sent. These consists of all messages that are currently in the “unsent” state.
58 59 60 |
# File 'lib/has_messages.rb', line 58 def .with_state(:unsent) end |