Module: Oass::Client::Campaign

Included in:
Oass::Client
Defined in:
lib/oass/client/campaign.rb

Instance Method Summary collapse

Instance Method Details

#create_campaign(attributes) ⇒ Object



12
13
14
# File 'lib/oass/client/campaign.rb', line 12

def create_campaign(attributes)
  create_or_update_campaign("add", attributes)
end

#read_campaign(id) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/oass/client/campaign.rb', line 4

def read_campaign(id)
  request "Campaign" do |xml|
    xml.Campaign(:action => "read") do
      xml.Overview { xml.Id id }
    end
  end
end

#update_campaign(attributes) ⇒ Object



16
17
18
# File 'lib/oass/client/campaign.rb', line 16

def update_campaign(attributes)
  create_or_update_campaign("update", attributes)
end