Sha256: 8150a525bf8d73be72e3aac1ae5e956c54a7669d0574f946711f48d14400bd12

Contents?: true

Size: 514 Bytes

Versions: 5

Compression:

Stored size: 514 Bytes

Contents

module OiApi

  class Client

    module Subscriptions

      def subscriptions(advertiser_id, options = {})
        post "/advertisers/#{advertiser_id}/subscriptions/", options
      end

      def subscription(advertiser_id, subscription_id, options = {})
        get "/advertisers/#{advertiser_id}/subscriptions/#{subscription_id}", options
      end

      def create_subscription(advertiser_id, options = {})
        post "/advertisers/#{advertiser_id}/subscriptions/", 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/subscriptions.rb
oi-api-ruby-0.1.4 lib/oi_api/client/subscriptions.rb
oi-api-ruby-0.1.3 lib/oi_api/client/subscriptions.rb
oi-api-ruby-0.1.2 lib/oi_api/client/subscriptions.rb
oi-api-ruby-0.1.1 lib/oi_api/client/subscriptions.rb