Sha256: 11a3a73fba19f3acf7dd4932c14814876ddb610c062827e774c775a7298fed8e
Contents?: true
Size: 1.56 KB
Versions: 5
Compression:
Stored size: 1.56 KB
Contents
require 'epom/epom_element' module Epom class Advertiser < EpomElement def self.extended_methods { :delete_advertiser => { :url => '/rest-api/advertisers/ADVERTISER_ID/delete.do', :url_parameters => [:advertiserId], :body_parameters => [:hash, :timestamp, :username], :method => :delete }, :get_advertiser_permissions_for_user => { :url => '/rest-api/advertiserShares.do', :body_parameters => [:hash, :timestamp, :username], :method => :get }, :get_campaigns_for_advertiser => { :url => '/rest-api/advertiser/ADVERTISER_ID/campaigns.do', :url_parameters => [:advertiserId], :body_parameters => [:hash, :timestamp, :username], :method => :get }, :update_advertiser => { :url => '/rest-api/advertisers/update.do', :body_parameters => [:id, :name, :contactName, :contactEmail, :description, :categoryId, :hash, :timestamp, :username], :method => :put }, :create_advertiser => { :url => '/rest-api/advertisers/update.do', :body_parameters => [:name, :contactName, :contactEmail, :description, :categoryId, :hash, :timestamp, :username], :method => :put }, } end def self.replace_params_in_url(url, urlp_arams) url.gsub!('ADVERTISER_ID', urlp_arams[:advertiserId].to_s) if url.include?('ADVERTISER_ID') url end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
epom-0.4.1 | lib/epom/advertiser.rb |
epom-0.4 | lib/epom/advertiser.rb |
epom-0.3.3 | lib/epom/advertiser.rb |
epom-0.3 | lib/epom/advertiser.rb |
epom-0.1.0 | lib/epom/advertiser.rb |