Class OpenWFE::Base64Attribute
In: lib/openwfe/orest/workitem.rb
Parent: Object

a wrapper for some binary content

Methods

dewrap   new   wrap  

Attributes

content  [RW] 

Public Class methods

[Source]

     # File lib/openwfe/orest/workitem.rb, line 154
154:         def initialize (base64content)
155: 
156:             @content = base64content
157:         end

wraps some binary content and stores it in this attribute (class method)

[Source]

     # File lib/openwfe/orest/workitem.rb, line 171
171:         def Base64Attribute.wrap (binaryData)
172: 
173:             Base64Attribute.new(Base64.encode64(binaryData))
174:         end

Public Instance methods

dewraps (decode) the current content and returns it

[Source]

     # File lib/openwfe/orest/workitem.rb, line 162
162:         def dewrap ()
163: 
164:             Base64.decode64(@content)
165:         end

[Validate]