Class: AWeber::Resources::Subscriber

Inherits:
AWeber::Resource show all
Defined in:
lib/aweber/resources/subscriber.rb

Instance Attribute Summary

Attributes inherited from AWeber::Resource

#parent

Instance Method Summary collapse

Methods inherited from AWeber::Resource

#<=>, alias_attribute, api_attr, basepath, #delete, has_many, has_one, #initialize, #inspect, #path, #save, #uri, #writable_attrs

Constructor Details

This class inherits a constructor from AWeber::Resource

Instance Method Details

#list=(list) ⇒ Object



29
30
31
32
33
34
35
# File 'lib/aweber/resources/subscriber.rb', line 29

def list=(list)
  client.post(self_link, {
    "ws.op"     => "move",
    "list_link" => list.self_link
  })
  move_to(list)
end