Class: SOAP::MIMEMessage::Header
Instance Attribute Summary collapse
-
#key ⇒ Object
Returns the value of attribute key.
-
#root ⇒ Object
Returns the value of attribute root.
-
#str ⇒ Object
Returns the value of attribute str.
Instance Method Summary collapse
- #[](key) ⇒ Object
- #[]=(key, value) ⇒ Object
-
#initialize ⇒ Header
constructor
A new instance of Header.
- #to_s ⇒ Object
Constructor Details
#initialize ⇒ Header
Returns a new instance of Header.
29 30 31 |
# File 'lib/soap/mimemessage.rb', line 29 def initialize @attrs = {} end |
Instance Attribute Details
#key ⇒ Object
Returns the value of attribute key.
27 28 29 |
# File 'lib/soap/mimemessage.rb', line 27 def key @key end |
#root ⇒ Object
Returns the value of attribute root.
27 28 29 |
# File 'lib/soap/mimemessage.rb', line 27 def root @root end |
#str ⇒ Object
Returns the value of attribute str.
27 28 29 |
# File 'lib/soap/mimemessage.rb', line 27 def str @str end |
Instance Method Details
#[](key) ⇒ Object
33 34 35 |
# File 'lib/soap/mimemessage.rb', line 33 def [](key) @attrs[key] end |
#[]=(key, value) ⇒ Object
37 38 39 |
# File 'lib/soap/mimemessage.rb', line 37 def []=(key, value) @attrs[key] = value end |
#to_s ⇒ Object
41 42 43 |
# File 'lib/soap/mimemessage.rb', line 41 def to_s @key + ": " + @str end |