Class: SOAP::MIMEMessage::Header

Inherits:
Object
  • Object
show all
Defined in:
lib/soap/mimemessage.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeHeader

Returns a new instance of Header.



29
30
31
# File 'lib/soap/mimemessage.rb', line 29

def initialize
  @attrs = {}
end

Instance Attribute Details

#keyObject

Returns the value of attribute key.



27
28
29
# File 'lib/soap/mimemessage.rb', line 27

def key
  @key
end

#rootObject

Returns the value of attribute root.



27
28
29
# File 'lib/soap/mimemessage.rb', line 27

def root
  @root
end

#strObject

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_sObject



41
42
43
# File 'lib/soap/mimemessage.rb', line 41

def to_s
  @key + ": " + @str
end