Class: Savon::Header

Inherits:
Object
  • Object
show all
Defined in:
lib/savon/header.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(globals, locals) ⇒ Header

Returns a new instance of Header.



8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/savon/header.rb', line 8

def initialize(globals, locals)
  @gyoku_options  = { :key_converter => globals[:convert_request_keys_to] }

  @wsse_auth      = globals[:wsse_auth]
  @wsse_timestamp = globals[:wsse_timestamp]

  @global_header  = globals[:soap_header]
  @local_header   = locals[:soap_header]

  @globals        = globals
  @locals         = locals

  @header = build
end

Instance Attribute Details

#global_headerObject (readonly)

Returns the value of attribute global_header.



23
24
25
# File 'lib/savon/header.rb', line 23

def global_header
  @global_header
end

#gyoku_optionsObject (readonly)

Returns the value of attribute gyoku_options.



23
24
25
# File 'lib/savon/header.rb', line 23

def gyoku_options
  @gyoku_options
end

#local_headerObject (readonly)

Returns the value of attribute local_header.



23
24
25
# File 'lib/savon/header.rb', line 23

def local_header
  @local_header
end

#wsse_authObject (readonly)

Returns the value of attribute wsse_auth.



23
24
25
# File 'lib/savon/header.rb', line 23

def wsse_auth
  @wsse_auth
end

#wsse_timestampObject (readonly)

Returns the value of attribute wsse_timestamp.



23
24
25
# File 'lib/savon/header.rb', line 23

def wsse_timestamp
  @wsse_timestamp
end

Instance Method Details

#empty?Boolean

Returns:

  • (Boolean)


26
27
28
# File 'lib/savon/header.rb', line 26

def empty?
  @header.empty?
end

#to_sObject



30
31
32
# File 'lib/savon/header.rb', line 30

def to_s
  @header
end