module Savon::SharedOptions

Public Instance Methods

wsse_auth(*credentials) click to toggle source

WSSE auth credentials for Akami. Local will override the global wsse_auth value, e.g.

global == [user, pass] && local == [user2, pass2] => [user2, pass2]
global == [user, pass] && local == false => false
global == [user, pass] && local == nil   => [user, pass]
# File lib/savon/options.rb, line 46
def wsse_auth(*credentials)
  credentials.flatten!
  if credentials.size == 1
    @options[:wsse_auth] = credentials.first
  else
    @options[:wsse_auth] = credentials
  end
end
wsse_signature(signature) click to toggle source
# File lib/savon/options.rb, line 64
def wsse_signature(signature)
  @options[:wsse_signature] = signature
end
wsse_timestamp(timestamp = true) click to toggle source

Instruct Akami to enable wsu:Timestamp headers. Local will override the global wsse_timestamp value, e.g.

global == true && local == true  => true
global == true && local == false => false
global == true && local == nil   => true
# File lib/savon/options.rb, line 60
def wsse_timestamp(timestamp = true)
  @options[:wsse_timestamp] = timestamp
end