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.21.0 lib/soapy_cake/affiliate.rb
soapy_cake-1.20.0 lib/soapy_cake/affiliate.rb
soapy_cake-1.19.0 lib/soapy_cake/affiliate.rb
soapy_cake-1.18.1 lib/soapy_cake/affiliate.rb
soapy_cake-1.18.0 lib/soapy_cake/affiliate.rb
soapy_cake-1.16.2 lib/soapy_cake/affiliate.rb
soapy_cake-1.16.1 lib/soapy_cake/affiliate.rb
soapy_cake-1.16.0 lib/soapy_cake/affiliate.rb
soapy_cake-1.15.0 lib/soapy_cake/affiliate.rb
soapy_cake-1.14.4 lib/soapy_cake/affiliate.rb
soapy_cake-1.14.3 lib/soapy_cake/affiliate.rb
soapy_cake-1.14.2 lib/soapy_cake/affiliate.rb
soapy_cake-1.14.1 lib/soapy_cake/affiliate.rb
soapy_cake-1.14.0 lib/soapy_cake/affiliate.rb
soapy_cake-1.13.1 lib/soapy_cake/affiliate.rb
soapy_cake-1.13.0 lib/soapy_cake/affiliate.rb
soapy_cake-1.11.6 lib/soapy_cake/affiliate.rb
soapy_cake-1.12.0 lib/soapy_cake/affiliate.rb
soapy_cake-1.11.5 lib/soapy_cake/affiliate.rb
soapy_cake-1.11.4 lib/soapy_cake/affiliate.rb