class DSP::API::Account
Public Class Methods
set_bid_url(url)
click to toggle source
# File lib/dsp/api/account.rb, line 14 def set_bid_url(url) body = {bid_url: url}.merge(DSP::AUTH) req = HTTParty.post(@@target_url, body: body).body JSON.parse(req) end
set_mapping_url(url)
click to toggle source
# File lib/dsp/api/account.rb, line 8 def set_mapping_url(url) body = {mapping_url: url}.merge(DSP::AUTH) req = HTTParty.post(@@target_url, body: body).body JSON.parse(req) end
set_no_cm_response(bool = true)
click to toggle source
# File lib/dsp/api/account.rb, line 32 def set_no_cm_response(bool = true) body = {no_cm_response: bool == true ? 'Y' : 'N'}.merge(DSP::AUTH) req = HTTParty.post(@@target_url, body: body).body JSON.parse(req) end
set_qps(qps)
click to toggle source
# File lib/dsp/api/account.rb, line 26 def set_qps(qps) body = {qps: qps}.merge(DSP::AUTH) req = HTTParty.post(@@target_url, body: body).body JSON.parse(req) end
set_use_tuserinfo(bool = true)
click to toggle source
# File lib/dsp/api/account.rb, line 38 def set_use_tuserinfo(bool = true) body = {use_tuserinfo: bool == true ? 'Y' : 'N'}.merge(DSP::AUTH) req = HTTParty.post(@@target_url, body: body).body JSON.parse(req) end
set_win_notice_url(url)
click to toggle source
# File lib/dsp/api/account.rb, line 20 def set_win_notice_url(url) body = {win_notice_url: url}.merge(DSP::AUTH) req = HTTParty.post(@@target_url, body: body).body JSON.parse(req) end