Class: Sem4r::AdGroupCriterionBids

Inherits:
Object
  • Object
show all
Includes:
Sem4rSoap::SoapAttributes
Defined in:
lib/sem4r/ad_group_criterion/ad_group_criterion_bids.rb

Class Method Summary collapse

Methods included from Sem4rSoap::SoapAttributes

#_from_element, #_to_s, #_to_xml, included

Class Method Details

.from_element(el) ⇒ Object



38
39
40
41
42
# File 'lib/sem4r/ad_group_criterion/ad_group_criterion_bids.rb', line 38

def self.from_element(el)
  type =  el.at_xpath("AdGroupCriterionBids.Type").text.strip
  klass = Module::const_get(type)
  klass.from_element(el)
end