Class: Savon::Header
- Inherits:
-
Object
- Object
- Savon::Header
- Defined in:
- lib/savon/header.rb
Instance Attribute Summary collapse
-
#global_header ⇒ Object
readonly
Returns the value of attribute global_header.
-
#gyoku_options ⇒ Object
readonly
Returns the value of attribute gyoku_options.
-
#local_header ⇒ Object
readonly
Returns the value of attribute local_header.
-
#wsse_auth ⇒ Object
readonly
Returns the value of attribute wsse_auth.
-
#wsse_timestamp ⇒ Object
readonly
Returns the value of attribute wsse_timestamp.
Instance Method Summary collapse
- #empty? ⇒ Boolean
-
#initialize(globals, locals) ⇒ Header
constructor
A new instance of Header.
- #to_s ⇒ Object
Constructor Details
#initialize(globals, locals) ⇒ Header
Returns a new instance of Header.
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/savon/header.rb', line 7 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] @header = build end |
Instance Attribute Details
#global_header ⇒ Object (readonly)
Returns the value of attribute global_header.
19 20 21 |
# File 'lib/savon/header.rb', line 19 def global_header @global_header end |
#gyoku_options ⇒ Object (readonly)
Returns the value of attribute gyoku_options.
19 20 21 |
# File 'lib/savon/header.rb', line 19 def @gyoku_options end |
#local_header ⇒ Object (readonly)
Returns the value of attribute local_header.
19 20 21 |
# File 'lib/savon/header.rb', line 19 def local_header @local_header end |
#wsse_auth ⇒ Object (readonly)
Returns the value of attribute wsse_auth.
19 20 21 |
# File 'lib/savon/header.rb', line 19 def wsse_auth @wsse_auth end |
#wsse_timestamp ⇒ Object (readonly)
Returns the value of attribute wsse_timestamp.
19 20 21 |
# File 'lib/savon/header.rb', line 19 def @wsse_timestamp end |
Instance Method Details
#empty? ⇒ Boolean
22 23 24 |
# File 'lib/savon/header.rb', line 22 def empty? @header.empty? end |
#to_s ⇒ Object
26 27 28 |
# File 'lib/savon/header.rb', line 26 def to_s @header end |