Sha256: fe9a7f58feb1321290a6463e72a1c7c29352b73beb6fab67c587e21f7f01e425

Contents?: true

Size: 611 Bytes

Versions: 5

Compression:

Stored size: 611 Bytes

Contents

module OiApi

  class Client

    module Advertisers

      def advertisers(options = {})
        get '/advertisers/', options
      end

      def advertiser(advertiser_id, options = {})
        get "/advertisers/#{advertiser_id}/", options
      end

      def create_advertiser(options = {})
        post '/advertisers/', options
      end

      def update_advertiser(advertiser_id, options = {})
        put "/advertisers/#{advertiser_id}/", options
      end

      def delete_advertiser(advertiser_id, options = {})
        delete "/advertisers/#{advertiser_id}/", options
      end

    end

  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
oi-api-ruby-0.1.5 lib/oi_api/client/advertisers.rb
oi-api-ruby-0.1.4 lib/oi_api/client/advertisers.rb
oi-api-ruby-0.1.3 lib/oi_api/client/advertisers.rb
oi-api-ruby-0.1.2 lib/oi_api/client/advertisers.rb
oi-api-ruby-0.1.1 lib/oi_api/client/advertisers.rb