Class: SendMMSResponse
- Inherits:
-
Object
- Object
- SendMMSResponse
- Defined in:
- lib/response/mms/SendMMSResponse.rb
Instance Method Summary collapse
- #getContentType ⇒ Object
- #getHTTPResponseCode ⇒ Object
- #getLocation ⇒ Object
- #getResourceReference ⇒ Object
-
#initialize ⇒ SendMMSResponse
constructor
A new instance of SendMMSResponse.
- #setContentType(contentType) ⇒ Object
- #setHTTPResponseCode(httpResponseCode) ⇒ Object
- #setLocation(location) ⇒ Object
- #setResourceReference(resourceReference) ⇒ Object
- #setResourceReferenceJSON(jsondata) ⇒ Object
Constructor Details
#initialize ⇒ SendMMSResponse
Returns a new instance of SendMMSResponse.
5 6 7 8 9 10 |
# File 'lib/response/mms/SendMMSResponse.rb', line 5 def initialize @httpResponseCode=0 @contentType=nil @location=nil @resourceReference=nil end |
Instance Method Details
#getContentType ⇒ Object
20 21 22 |
# File 'lib/response/mms/SendMMSResponse.rb', line 20 def getContentType @contentType end |
#getHTTPResponseCode ⇒ Object
12 13 14 |
# File 'lib/response/mms/SendMMSResponse.rb', line 12 def getHTTPResponseCode @httpResponseCode end |
#getLocation ⇒ Object
28 29 30 |
# File 'lib/response/mms/SendMMSResponse.rb', line 28 def getLocation @location end |
#getResourceReference ⇒ Object
36 37 38 |
# File 'lib/response/mms/SendMMSResponse.rb', line 36 def getResourceReference @resourceReference end |
#setContentType(contentType) ⇒ Object
24 25 26 |
# File 'lib/response/mms/SendMMSResponse.rb', line 24 def setContentType(contentType) @contentType=contentType end |
#setHTTPResponseCode(httpResponseCode) ⇒ Object
16 17 18 |
# File 'lib/response/mms/SendMMSResponse.rb', line 16 def setHTTPResponseCode(httpResponseCode) @httpResponseCode=httpResponseCode end |
#setLocation(location) ⇒ Object
32 33 34 |
# File 'lib/response/mms/SendMMSResponse.rb', line 32 def setLocation(location) @location=location end |
#setResourceReference(resourceReference) ⇒ Object
40 41 42 |
# File 'lib/response/mms/SendMMSResponse.rb', line 40 def setResourceReference(resourceReference) @resourceReference=resourceReference end |
#setResourceReferenceJSON(jsondata) ⇒ Object
44 45 46 47 |
# File 'lib/response/mms/SendMMSResponse.rb', line 44 def setResourceReferenceJSON(jsondata) @resourceReference=ResourceReference.new @resourceReference.initializeJSON(jsondata) end |