Sha256: e047f6c46380553ff3a8c1605f825580a8cc8a9112c91854c663c6887ca2046a

Contents?: true

Size: 421 Bytes

Versions: 11

Compression:

Stored size: 421 Bytes

Contents

# frozen_string_literal: true

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

11 entries across 11 versions & 1 rubygems

Version Path
soapy_cake-2.3.1 lib/soapy_cake/affiliate.rb
soapy_cake-2.3.0 lib/soapy_cake/affiliate.rb
soapy_cake-2.2.7 lib/soapy_cake/affiliate.rb
soapy_cake-2.2.6 lib/soapy_cake/affiliate.rb
soapy_cake-2.2.5 lib/soapy_cake/affiliate.rb
soapy_cake-2.2.4 lib/soapy_cake/affiliate.rb
soapy_cake-2.2.3 lib/soapy_cake/affiliate.rb
soapy_cake-2.2.1 lib/soapy_cake/affiliate.rb
soapy_cake-2.1.6 lib/soapy_cake/affiliate.rb
soapy_cake-2.1.5 lib/soapy_cake/affiliate.rb
soapy_cake-2.1.4 lib/soapy_cake/affiliate.rb