Class: EmailDirect::RelaySend::Receipt
- Inherits:
-
Object
- Object
- EmailDirect::RelaySend::Receipt
- Defined in:
- lib/emaildirect/relay_send/receipt.rb
Overview
Represents a relay send receipt and associated functionality
Instance Attribute Summary collapse
-
#receipt_id ⇒ Object
readonly
Returns the value of attribute receipt_id.
Instance Method Summary collapse
- #clicks ⇒ Object
- #details ⇒ Object
-
#initialize(receipt_id) ⇒ Receipt
constructor
A new instance of Receipt.
- #message ⇒ Object
Constructor Details
#initialize(receipt_id) ⇒ Receipt
Returns a new instance of Receipt.
9 10 11 |
# File 'lib/emaildirect/relay_send/receipt.rb', line 9 def initialize(receipt_id) @receipt_id = receipt_id end |
Instance Attribute Details
#receipt_id ⇒ Object (readonly)
Returns the value of attribute receipt_id.
7 8 9 |
# File 'lib/emaildirect/relay_send/receipt.rb', line 7 def receipt_id @receipt_id end |
Instance Method Details
#clicks ⇒ Object
23 24 25 26 |
# File 'lib/emaildirect/relay_send/receipt.rb', line 23 def clicks response = get 'Clicks' Hashie::Mash.new(response) end |
#details ⇒ Object
13 14 15 16 |
# File 'lib/emaildirect/relay_send/receipt.rb', line 13 def details response = get Hashie::Mash.new(response) end |
#message ⇒ Object
18 19 20 21 |
# File 'lib/emaildirect/relay_send/receipt.rb', line 18 def response = get 'Message' Hashie::Mash.new(response) end |