# File soap/attachment.rb, line 76
def self.contentid(obj)
# this needs to be fixed
[obj.__id__.to_s, Process.pid.to_s].join('.')
end
# File soap/attachment.rb, line 54
def content
if @content == nil and @string_or_readable != nil
@content = @string_or_readable.respond_to?(:read) ?
@string_or_readable.read : @string_or_readable
end
@content
end
# File soap/attachment.rb, line 42
def contentid
@contentid ||= Attachment.contentid(self)
end
# File soap/attachment.rb, line 46
def contentid=(contentid)
@contentid = contentid
end
# File soap/attachment.rb, line 50
def mime_contentid
'<' + contentid + '>'
end
Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.
If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.
If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.
If you want to help improve the Ruby documentation, please see Improve the docs, or visit Documenting-ruby.org.