Class: Mailflow::SendResult
- Inherits:
-
Object
- Object
- Mailflow::SendResult
- Defined in:
- lib/mailflow/send_result.rb
Instance Attribute Summary collapse
-
#message_id ⇒ Object
readonly
Returns the value of attribute message_id.
-
#recipients ⇒ Object
readonly
Returns the value of attribute recipients.
Instance Method Summary collapse
- #[](recipient) ⇒ Object
-
#initialize(client, result) ⇒ SendResult
constructor
A new instance of SendResult.
- #size ⇒ Object
Constructor Details
#initialize(client, result) ⇒ SendResult
Returns a new instance of SendResult.
5 6 7 8 9 |
# File 'lib/mailflow/send_result.rb', line 5 def initialize(client, result) @client = client = result['message_id'] @recipients = build_recipients(result['messages']) end |
Instance Attribute Details
#message_id ⇒ Object (readonly)
Returns the value of attribute message_id.
3 4 5 |
# File 'lib/mailflow/send_result.rb', line 3 def end |
#recipients ⇒ Object (readonly)
Returns the value of attribute recipients.
3 4 5 |
# File 'lib/mailflow/send_result.rb', line 3 def recipients @recipients end |
Instance Method Details
#[](recipient) ⇒ Object
11 12 13 |
# File 'lib/mailflow/send_result.rb', line 11 def [](recipient) recipients[recipient.to_s.downcase] end |
#size ⇒ Object
15 16 17 |
# File 'lib/mailflow/send_result.rb', line 15 def size recipients.size end |