Class: AdsCommon::SavonHeaders::OAuthHeaderHandler

Inherits:
BaseHeaderHandler show all
Defined in:
lib/ads_common/savon_headers/oauth_header_handler.rb

Constant Summary

Constants inherited from BaseHeaderHandler

BaseHeaderHandler::DEFAULT_NAMESPACE

Instance Method Summary collapse

Methods inherited from BaseHeaderHandler

#initialize

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