Class: BingAdsRubySdk::Services::Base
- Inherits:
-
Object
- Object
- BingAdsRubySdk::Services::Base
- Defined in:
- lib/bing_ads_ruby_sdk/services/base.rb
Direct Known Subclasses
AdInsight, Bulk, CampaignManagement, CustomerBilling, CustomerManagement, Reporting
Class Method Summary collapse
Instance Method Summary collapse
- #call(operation_name, message = {}) ⇒ Object
-
#initialize(soap_client) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(soap_client) ⇒ Base
Returns a new instance of Base.
13 14 15 |
# File 'lib/bing_ads_ruby_sdk/services/base.rb', line 13 def initialize(soap_client) @soap_client = soap_client end |
Class Method Details
.service ⇒ Object
26 27 28 |
# File 'lib/bing_ads_ruby_sdk/services/base.rb', line 26 def self.service raise 'implement me' end |
Instance Method Details
#call(operation_name, message = {}) ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/bing_ads_ruby_sdk/services/base.rb', line 17 def call(operation_name, = {}) camelized_name = BingAdsRubySdk::StringUtils.camelize(operation_name.to_s) response = soap_client.call( camelized_name, preprocess(, camelized_name), ) postprocess(response) end |