Class: MailUp::Stats::Recipient
- Inherits:
-
Object
- Object
- MailUp::Stats::Recipient
- Defined in:
- lib/mailup/stats/recipient.rb
Instance Attribute Summary collapse
-
#api ⇒ Object
Returns the value of attribute api.
Instance Method Summary collapse
-
#bounces(params = {}) ⇒ JSON
Paged list of bounces returned by the specified recipient.
-
#bounces_count ⇒ Integer
Count of bounces returned by the specified recipient.
-
#bounces_details(params = {}) ⇒ JSON
Paged list of bounces with details returned by the specified recipient.
-
#clicks(params = {}) ⇒ JSON
Paged list of message clicks on a link done by the specified recipient.
-
#clicks_count ⇒ Integer
Count of clicks on a link in the specified email.
-
#clicks_details(params = {}) ⇒ JSON
Verbose paged list of message clicks on a link done by the specified recipient.
-
#deliveries(params = {}) ⇒ JSON
Paged list of messages received by the specified recipient.
-
#deliveries_count ⇒ Integer
Count of messages received by the specified recipient.
-
#initialize(id, api) ⇒ Recipient
constructor
A new instance of Recipient.
-
#unsubscribes(params = {}) ⇒ JSON
Paged list of unsubscriptions done by the specified recipient.
-
#unsubscribes_count ⇒ Integer
Count of unsubscriptions done by the specified recipient.
-
#views(params = {}) ⇒ JSON
Paged list of messages viewed by the specified recipient.
-
#views_count ⇒ Integer
Count of messages viewed by the specified recipient.
Constructor Details
#initialize(id, api) ⇒ Recipient
Returns a new instance of Recipient.
6 7 8 9 |
# File 'lib/mailup/stats/recipient.rb', line 6 def initialize(id, api) @api = api @id = id end |
Instance Attribute Details
#api ⇒ Object
Returns the value of attribute api.
4 5 6 |
# File 'lib/mailup/stats/recipient.rb', line 4 def api @api end |
Instance Method Details
#bounces(params = {}) ⇒ JSON
Paged list of bounces returned by the specified recipient.
159 160 161 |
# File 'lib/mailup/stats/recipient.rb', line 159 def bounces(params = {}) @api.get("#{@api.path}/Recipient/#{@id}/List/Bounces", params: params) end |
#bounces_count ⇒ Integer
Count of bounces returned by the specified recipient.
175 176 177 |
# File 'lib/mailup/stats/recipient.rb', line 175 def bounces_count @api.get("#{@api.path}/Recipient/#{@id}/Count/Bounces") end |
#bounces_details(params = {}) ⇒ JSON
Paged list of bounces with details returned by the specified recipient.
129 130 131 |
# File 'lib/mailup/stats/recipient.rb', line 129 def bounces_details(params = {}) @api.get("#{@api.path}/Recipient/#{@id}/List/BouncesDetails", params: params) end |
#clicks(params = {}) ⇒ JSON
Paged list of message clicks on a link done by the specified recipient.
281 282 283 |
# File 'lib/mailup/stats/recipient.rb', line 281 def clicks(params = {}) @api.get("#{@api.path}/Recipient/#{@id}/List/Clicks", params: params) end |
#clicks_count ⇒ Integer
Count of clicks on a link in the specified email.
297 298 299 |
# File 'lib/mailup/stats/recipient.rb', line 297 def clicks_count @api.get("#{@api.path}/Recipient/#{@id}/Count/Clicks") end |
#clicks_details(params = {}) ⇒ JSON
Verbose paged list of message clicks on a link done by the specified recipient.
251 252 253 |
# File 'lib/mailup/stats/recipient.rb', line 251 def clicks_details(params = {}) @api.get("#{@api.path}/Recipient/#{@id}/List/ClicksDetails", params: params) end |
#deliveries(params = {}) ⇒ JSON
Paged list of messages received by the specified recipient.
37 38 39 |
# File 'lib/mailup/stats/recipient.rb', line 37 def deliveries(params = {}) @api.get("#{@api.path}/Recipient/#{@id}/List/Deliveries", params: params) end |
#deliveries_count ⇒ Integer
Count of messages received by the specified recipient.
53 54 55 |
# File 'lib/mailup/stats/recipient.rb', line 53 def deliveries_count @api.get("#{@api.path}/Recipient/#{@id}/Count/Deliveries") end |
#unsubscribes(params = {}) ⇒ JSON
Paged list of unsubscriptions done by the specified recipient.
205 206 207 |
# File 'lib/mailup/stats/recipient.rb', line 205 def unsubscribes(params = {}) @api.get("#{@api.path}/Recipient/#{@id}/List/Unsubscriptions", params: params) end |
#unsubscribes_count ⇒ Integer
Count of unsubscriptions done by the specified recipient.
221 222 223 |
# File 'lib/mailup/stats/recipient.rb', line 221 def unsubscribes_count @api.get("#{@api.path}/Recipient/#{@id}/Count/Unsubscriptions") end |
#views(params = {}) ⇒ JSON
Paged list of messages viewed by the specified recipient.
83 84 85 |
# File 'lib/mailup/stats/recipient.rb', line 83 def views(params = {}) @api.get("#{@api.path}/Recipient/#{@id}/List/Views", params: params) end |
#views_count ⇒ Integer
Count of messages viewed by the specified recipient.
99 100 101 |
# File 'lib/mailup/stats/recipient.rb', line 99 def views_count @api.get("#{@api.path}/Recipient/#{@id}/Count/Views") end |