Class: Sem4r::ReportDefinitionOperation

Inherits:
Operation
  • Object
show all
Defined in:
lib/sem4r/report_definition/report_definition_operation.rb

Instance Attribute Summary

Attributes inherited from Operation

#operation_type

Instance Method Summary collapse

Methods inherited from Operation

#_xml, add, #add, remove, #remove, set, #set, #to_xml, #xml

Methods included from Sem4rSoap::SoapAttributes

#_from_element, #_to_s, #_to_xml, included

Constructor Details

#initialize(&block) ⇒ ReportDefinitionOperation

Returns a new instance of ReportDefinitionOperation.



27
28
29
30
31
32
33
34
# File 'lib/sem4r/report_definition/report_definition_operation.rb', line 27

def initialize(&block)
  @operation_type = "n1:ReportDefinitionOperation"
  @attrs = {'xmlns:n1'=>"https://adwords.google.com/api/adwords/cm/v201008"}
  if block_given?
    block.arity < 1 ? instance_eval(&block) : block.call(self)
  end
  self
end