Class: Mailchimp::Vip
- Inherits:
-
Object
- Object
- Mailchimp::Vip
- Defined in:
- lib/mailchimp/api.rb
Instance Attribute Summary collapse
-
#master ⇒ Object
Returns the value of attribute master.
Instance Method Summary collapse
-
#activity ⇒ Array
Retrieve all Activity (opens/clicks) for VIPs over the past 10 days.
-
#add(id, emails) ⇒ Hash
Add VIPs (previously called Golden Monkeys).
-
#del(id, emails) ⇒ Hash
Remove VIPs - this does not affect list membership.
-
#initialize(master) ⇒ Vip
constructor
A new instance of Vip.
-
#members ⇒ Array
Retrieve all Golden Monkey(s) for an account.
Constructor Details
#initialize(master) ⇒ Vip
Returns a new instance of Vip.
1683 1684 1685 |
# File 'lib/mailchimp/api.rb', line 1683 def initialize(master) @master = master end |
Instance Attribute Details
#master ⇒ Object
Returns the value of attribute master.
1681 1682 1683 |
# File 'lib/mailchimp/api.rb', line 1681 def master @master end |
Instance Method Details
#activity ⇒ Array
Retrieve all Activity (opens/clicks) for VIPs over the past 10 days
1709 1710 1711 1712 |
# File 'lib/mailchimp/api.rb', line 1709 def activity() _params = {} return @master.call 'vip/activity', _params end |
#add(id, emails) ⇒ Hash
Add VIPs (previously called Golden Monkeys)
1735 1736 1737 1738 |
# File 'lib/mailchimp/api.rb', line 1735 def add(id, emails) _params = {:id => id, :emails => emails} return @master.call 'vip/add', _params end |
#del(id, emails) ⇒ Hash
Remove VIPs - this does not affect list membership
1761 1762 1763 1764 |
# File 'lib/mailchimp/api.rb', line 1761 def del(id, emails) _params = {:id => id, :emails => emails} return @master.call 'vip/del', _params end |
#members ⇒ Array
Retrieve all Golden Monkey(s) for an account
1775 1776 1777 1778 |
# File 'lib/mailchimp/api.rb', line 1775 def members() _params = {} return @master.call 'vip/members', _params end |