Class: Google::Ads::GoogleAds::VersionAlternate
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Google::Ads::GoogleAds::VersionAlternate
- Defined in:
- lib/google/ads/google_ads/version_alternate.rb
Instance Method Summary collapse
-
#initialize(main, version_alternates) ⇒ VersionAlternate
constructor
A new instance of VersionAlternate.
Constructor Details
#initialize(main, version_alternates) ⇒ VersionAlternate
Returns a new instance of VersionAlternate.
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/google/ads/google_ads/version_alternate.rb', line 7 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 |