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


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

def initialize
  @attrs = {}
end

Instance Attribute Details

#keyObject

Returns the value of attribute key


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

def key
  @key
end

#rootObject

Returns the value of attribute root


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

def root
  @root
end

#strObject

Returns the value of attribute str


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

def str
  @str
end

Instance Method Details

#[](key) ⇒ Object


32
33
34
# File 'lib/soap/mimemessage.rb', line 32

def [](key)
  @attrs[key]
end

#[]=(key, value) ⇒ Object


36
37
38
# File 'lib/soap/mimemessage.rb', line 36

def []=(key, value)
  @attrs[key] = value
end

#to_sObject


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

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