diff --git a/lib/aweber/resources/subscriber.rb b/lib/aweber/resources/subscriber.rb index 9b44cf8..1f6cfb6 100644 --- a/lib/aweber/resources/subscriber.rb +++ b/lib/aweber/resources/subscriber.rb @@ -2,7 +2,7 @@ module AWeber module Resources class Subscriber < Resource basepath "/subscribers" - + api_attr :name, :writable => true api_attr :misc_notes, :writable => true api_attr :email, :writable => true @@ -10,6 +10,7 @@ class Subscriber < Resource api_attr :custom_fields, :writable => true api_attr :ad_tracking, :writable => true api_attr :last_followup_message_number_sent, :writable => true + api_attr :tags, :writable => true api_attr :ip_address api_attr :is_verified diff --git a/spec/resources/subscriber_spec.rb b/spec/resources/subscriber_spec.rb index 68ff360..f1e49eb 100644 --- a/spec/resources/subscriber_spec.rb +++ b/spec/resources/subscriber_spec.rb @@ -3,7 +3,7 @@ describe AWeber::Resources::Subscriber do include BaseObjects subject { aweber.account.lists[1].subscribers[50723026] } - + it { should respond_to :ad_tracking } it { should respond_to :email } it { should respond_to :http_etag } @@ -32,6 +32,7 @@ its(:writable_attrs) { should include :custom_fields } its(:writable_attrs) { should include :ad_tracking } its(:writable_attrs) { should include :last_followup_message_number_sent } + its(:writable_attrs) { should include :tags } it "should move lists" do list = "http://api.aweber.com/1.0/accounts/1/lists/987654"