Class: EmailDirect::RelaySend::Receipt

Inherits:
Object
  • Object
show all
Defined in:
lib/emaildirect/relay_send/receipt.rb

Overview

Represents a relay send receipt and associated functionality

Instance Attribute Summary collapse

Instance Method Summary collapse

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_idObject (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

#clicksObject



23
24
25
26
# File 'lib/emaildirect/relay_send/receipt.rb', line 23

def clicks
  response = get 'Clicks'
  Hashie::Mash.new(response)
end

#detailsObject



13
14
15
16
# File 'lib/emaildirect/relay_send/receipt.rb', line 13

def details
  response = get
  Hashie::Mash.new(response)
end

#messageObject



18
19
20
21
# File 'lib/emaildirect/relay_send/receipt.rb', line 18

def message
  response = get 'Message'
  Hashie::Mash.new(response)
end