class Attachment
Public Class Methods
new()
click to toggle source
# File lib/response/Attachment.rb, line 4 def initialize @name=nil @contentType=nil @data=nil end
Public Instance Methods
getContentType()
click to toggle source
# File lib/response/Attachment.rb, line 33 def getContentType @contentType end
getData()
click to toggle source
# File lib/response/Attachment.rb, line 41 def getData @data end
getName()
click to toggle source
# File lib/response/Attachment.rb, line 25 def getName @name end
initializeJSON(jsondict)
click to toggle source
# File lib/response/Attachment.rb, line 10 def initializeJSON(jsondict) @name=nil if (jsondict!=nil) && (jsondict.has_key?'name') && (jsondict['name']!=nil) @name=jsondict['name'] end @contentType=nil if (jsondict!=nil) && (jsondict.has_key?'contentType') && (jsondict['contentType']!=nil) @contentType=jsondict['contentType'] end @data=nil if (jsondict!=nil) && (jsondict.has_key?'data') && (jsondict['data']!=nil) @data=jsondict['data'] end end
setContentType(contentType)
click to toggle source
# File lib/response/Attachment.rb, line 37 def setContentType(contentType) @contentType=contentType end
setData(data)
click to toggle source
# File lib/response/Attachment.rb, line 45 def setData(data) @data=data end
setName(name)
click to toggle source
# File lib/response/Attachment.rb, line 29 def setName(name) @name=name end