Class: Playwire::URIBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/playwire/uri_builder.rb

Constant Summary collapse

PWC =
Playwire::PWC
PWC_CONFIG =
PWC::Config
PWC_SK_AD_NETWORK =
PWC::SK_Ad_Network

Class Method Summary collapse

Class Method Details

.config_file(publisher_id, app_id) ⇒ Object



11
12
13
14
15
# File 'lib/playwire/uri_builder.rb', line 11

def self.config_file(publisher_id, app_id)
  file_path = "#{PWC_CONFIG::PW_RAMP_FILE_PATH}.#{PWC::PW_JSON_FILE_EXTENSION}"
  path = "/#{publisher_id}/#{PWC_CONFIG::PW_RAMP_APPS_PATH}/#{app_id}/#{file_path}"
  return URI::HTTPS.build(host: PWC_CONFIG::PW_RAMP_HOST, path: path)
end

.sk_ad_network_itemsObject



17
18
19
20
21
# File 'lib/playwire/uri_builder.rb', line 17

def self.sk_ad_network_items
  file_path = "#{PWC_SK_AD_NETWORK::PW_S3_FILE_PATH}.#{PWC::PW_JSON_FILE_EXTENSION}"
  path = "/#{PWC_SK_AD_NETWORK::PW_S3_PATH}/#{file_path}"
  return URI::HTTPS.build(host: PWC_SK_AD_NETWORK::PW_S3_HOST, path: path)
end