Class: Attachment

Inherits:
Object
  • Object
show all
Defined in:
lib/response/Attachment.rb

Instance Method Summary collapse

Constructor Details

#initializeAttachment

Returns a new instance of Attachment.



4
5
6
7
8
# File 'lib/response/Attachment.rb', line 4

def initialize
  @name=nil
  @contentType=nil
  @data=nil
end

Instance Method Details

#getContentTypeObject



33
34
35
# File 'lib/response/Attachment.rb', line 33

def getContentType
  @contentType
end

#getDataObject



41
42
43
# File 'lib/response/Attachment.rb', line 41

def getData
  @data
end

#getNameObject



25
26
27
# File 'lib/response/Attachment.rb', line 25

def getName
  @name
end

#initializeJSON(jsondict) ⇒ Object



10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 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) ⇒ Object



37
38
39
# File 'lib/response/Attachment.rb', line 37

def setContentType(contentType)
  @contentType=contentType
end

#setData(data) ⇒ Object



45
46
47
# File 'lib/response/Attachment.rb', line 45

def setData(data)
  @data=data
end

#setName(name) ⇒ Object



29
30
31
# File 'lib/response/Attachment.rb', line 29

def setName(name)
  @name=name
end