Sha256: 309ca98b41c3065db0ea78ee9697fa87d00cd1c40f29cedeef0fe7082da45cb1

Contents?: true

Size: 461 Bytes

Versions: 23

Compression:

Stored size: 461 Bytes

Contents

require 'delegate'

module Google
  module Ads
    module GoogleAds
      class VersionAlternate < SimpleDelegator
        def initialize(main, version_alternates)
          super(main)
          @version_alternates = version_alternates

          @version_alternates.keys.each do |k|
            define_singleton_method(k.to_s.downcase.to_sym) do
              @version_alternates.fetch(k)
            end
          end
        end
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
google-ads-googleads-31.0.0 lib/google/ads/google_ads/version_alternate.rb
google-ads-googleads-30.0.0 lib/google/ads/google_ads/version_alternate.rb
google-ads-googleads-29.0.0 lib/google/ads/google_ads/version_alternate.rb
google-ads-googleads-28.0.0 lib/google/ads/google_ads/version_alternate.rb
google-ads-googleads-27.0.0 lib/google/ads/google_ads/version_alternate.rb
google-ads-googleads-26.0.0 lib/google/ads/google_ads/version_alternate.rb
google-ads-googleads-25.0.2 lib/google/ads/google_ads/version_alternate.rb
google-ads-googleads-25.0.1 lib/google/ads/google_ads/version_alternate.rb
google-ads-googleads-25.0.0 lib/google/ads/google_ads/version_alternate.rb
google-ads-googleads-24.0.0 lib/google/ads/google_ads/version_alternate.rb
google-ads-googleads-23.1.0 lib/google/ads/google_ads/version_alternate.rb
google-ads-googleads-23.0.0 lib/google/ads/google_ads/version_alternate.rb
google-ads-googleads-22.1.0 lib/google/ads/google_ads/version_alternate.rb
google-ads-googleads-22.0.0 lib/google/ads/google_ads/version_alternate.rb
google-ads-googleads-21.0.0 lib/google/ads/google_ads/version_alternate.rb
google-ads-googleads-20.0.0 lib/google/ads/google_ads/version_alternate.rb
google-ads-googleads-19.0.0 lib/google/ads/google_ads/version_alternate.rb
google-ads-googleads-18.1.0 lib/google/ads/google_ads/version_alternate.rb
google-ads-googleads-18.0.0 lib/google/ads/google_ads/version_alternate.rb
google-ads-googleads-17.0.0 lib/google/ads/google_ads/version_alternate.rb