Sha256: d137cbe3b0eaaa1a7d7af59fa44a28cdc9e2983bced19f5324b1052766fb6d2f

Contents?: true

Size: 1011 Bytes

Versions: 7

Compression:

Stored size: 1011 Bytes

Contents

# frozen_string_literal: true

module Bing
  module Ads
    module API
      # Bing::Ads::API::V11::Constants
      module Constants
        root_v11_path = File.expand_path('../', __FILE__)

        campaign_management_path = File.join(root_v11_path, 'constants', 'campaign_management.yml')
        languages_path = File.join(root_v11_path, 'constants', 'languages.yml')
        limits_path = File.join(root_v11_path, 'constants', 'limits.yml')
        time_zones_path = File.join(root_v11_path, 'constants', 'time_zones.yml')
        wsdl_path = File.join(root_v11_path, 'constants', 'wsdl.yml')

        Persey.init(:default) do
          source :yaml, campaign_management_path, :campaign_management
          source :yaml, languages_path, :languages
          source :yaml, limits_path, :limits
          source :yaml, time_zones_path, :time_zones
          source :yaml, wsdl_path, :wsdl
          env :default
        end

        Bing::Ads::API::V11.constants = Persey.config
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
bing-ads-0.2.0 lib/bing/ads/api/v11/constants.rb
bing-ads-0.1.11 lib/bing/ads/api/v11/constants.rb
bing-ads-0.1.10 lib/bing/ads/api/v11/constants.rb
bing-ads-0.1.7 lib/bing/ads/api/v11/constants.rb
bing-ads-0.1.6 lib/bing/ads/api/v11/constants.rb
bing-ads-0.1.5 lib/bing/ads/api/v11/constants.rb
bing-ads-0.1.4 lib/bing/ads/api/v11/constants.rb