Sha256: 8f87c20710504157ffa29d1509f78630e909423eab1b9163e3d9789a9b5a8c27

Contents?: true

Size: 390 Bytes

Versions: 62

Compression:

Stored size: 390 Bytes

Contents

module SoapyCake
  class Affiliate < Client
    def bills(opts = {})
      run Request.new(:affiliate, :reports, :bills, affiliate_opts(opts))
    end

    def offer_feed(opts = {})
      run Request.new(:affiliate, :offers, :offer_feed, affiliate_opts(opts))
    end

    private

    def affiliate_opts(opts)
      { affiliate_id: self.opts[:affiliate_id] }.merge(opts)
    end
  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
soapy_cake-1.6.4 lib/soapy_cake/affiliate.rb
soapy_cake-1.6.3 lib/soapy_cake/affiliate.rb
soapy_cake-1.6.2 lib/soapy_cake/affiliate.rb
soapy_cake-1.6.1 lib/soapy_cake/affiliate.rb
soapy_cake-1.6.0 lib/soapy_cake/affiliate.rb
soapy_cake-1.5.2 lib/soapy_cake/affiliate.rb
soapy_cake-1.5.1 lib/soapy_cake/affiliate.rb
soapy_cake-1.5.0 lib/soapy_cake/affiliate.rb
soapy_cake-1.4.0 lib/soapy_cake/affiliate.rb
soapy_cake-1.3.6 lib/soapy_cake/affiliate.rb
soapy_cake-1.3.5 lib/soapy_cake/affiliate.rb
soapy_cake-1.3.4 lib/soapy_cake/affiliate.rb
soapy_cake-1.3.3 lib/soapy_cake/affiliate.rb
soapy_cake-1.3.2 lib/soapy_cake/affiliate.rb
soapy_cake-1.3.1 lib/soapy_cake/affiliate.rb
soapy_cake-1.3.0 lib/soapy_cake/affiliate.rb
soapy_cake-1.2.0 lib/soapy_cake/affiliate.rb
soapy_cake-1.1.2 lib/soapy_cake/affiliate.rb
soapy_cake-1.1.1 lib/soapy_cake/affiliate.rb
soapy_cake-1.1.0 lib/soapy_cake/affiliate.rb