Method: Chimpactions::Subscriber::ClassMethods#remove_from
- Defined in:
- lib/chimpactions/subscriber.rb
#remove_from(list, opts = {}) ⇒ Object
Remove the Subscriber from the specified list.
58 59 60 61 |
# File 'lib/chimpactions/subscriber.rb', line 58 def remove_from(list, opts={}) list = validate_list(list) list.socket.listUnsubscribe({:id => list.id, :email_address => self.email}.merge opts) == "true" end |