Class: Discuss::MessageSender
- Inherits:
-
Object
- Object
- Discuss::MessageSender
- Defined in:
- app/services/discuss/message_sender.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#recipients ⇒ Object
readonly
Returns the value of attribute recipients.
Instance Method Summary collapse
-
#initialize(message) ⇒ MessageSender
constructor
A new instance of MessageSender.
- #run ⇒ Object
Constructor Details
#initialize(message) ⇒ MessageSender
Returns a new instance of MessageSender.
7 8 9 10 |
# File 'app/services/discuss/message_sender.rb', line 7 def initialize @message = @recipients = .recipient_list end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message
2 3 4 |
# File 'app/services/discuss/message_sender.rb', line 2 def @message end |
#recipients ⇒ Object (readonly)
Returns the value of attribute recipients
2 3 4 |
# File 'app/services/discuss/message_sender.rb', line 2 def recipients @recipients end |
Instance Method Details
#run ⇒ Object
12 13 14 |
# File 'app/services/discuss/message_sender.rb', line 12 def run deliver! end |