Class: AdsCommonForBingAds::Build::SavonRegistry

Inherits:
AdsCommon::Build::SavonRegistry
  • Object
show all
Defined in:
lib/ads_common_for_bing_ads.rb,
lib/ads_common_for_bing_ads/build/savon_registry.rb

Instance Method Summary collapse

Instance Method Details

#extract_input_parameters(op_node, doc) ⇒ Object

Extracts input parameters of given method as an array.



5
6
7
8
9
10
# File 'lib/ads_common_for_bing_ads/build/savon_registry.rb', line 5

def extract_input_parameters(op_node, doc)
  input_element = REXML::XPath.first(op_node, 'descendant::wsdl:input')
  input_name = get_element_name(input_element)
  input_fields = find_sequence_fields(input_name, doc)
  return {:name => input_name.snakecase, :fields => input_fields}
end