Class: Playwire::URIBuilder
- Inherits:
-
Object
- Object
- Playwire::URIBuilder
- Defined in:
- lib/playwire/uri_builder.rb
Constant Summary collapse
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_items ⇒ Object
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 |