Class: AdsCommon::SavonHeaders::OAuthHeaderHandler
- Inherits:
-
BaseHeaderHandler
- Object
- BaseHeaderHandler
- AdsCommon::SavonHeaders::OAuthHeaderHandler
- Defined in:
- lib/ads_common/savon_headers/oauth_header_handler.rb
Constant Summary
Constants inherited from BaseHeaderHandler
BaseHeaderHandler::DEFAULT_NAMESPACE
Instance Method Summary collapse
-
#prepare_request(request, soap, args) ⇒ Object
Enriches soap object with API-specific headers like namespaces, login credentials etc.
Methods inherited from BaseHeaderHandler
Constructor Details
This class inherits a constructor from AdsCommon::SavonHeaders::BaseHeaderHandler
Instance Method Details
#prepare_request(request, soap, args) ⇒ Object
Enriches soap object with API-specific headers like namespaces, login credentials etc. Sets the default namespace for the body to the one specified in initializer.
Args:
- request: a HTTPI Request for extra configuration
- soap: a Savon soap object to fill fields in
- args: request parameters to adjust for namespaces
Returns:
- Modified soap structure
40 41 42 43 |
# File 'lib/ads_common/savon_headers/oauth_header_handler.rb', line 40 def prepare_request(request, soap, args) super(request, soap, args) generate_headers(request, soap) end |