Class: RestException

Inherits:
Object
  • Object
show all
Defined in:
lib/splat/vendors/twilio/xml/twilio_xml.rb

Overview

{}RestException

Constant Summary collapse

@@schema_type =
"RestException"
@@schema_ns =
nil
@@schema_element =
[["status", ["SOAP::SOAPString", XSD::QName.new(nil, "Status")]], ["message", ["SOAP::SOAPString", XSD::QName.new(nil, "Message")]], ["code", ["SOAP::SOAPString", XSD::QName.new(nil, "Code")]], ["moreInfo", ["SOAP::SOAPString", XSD::QName.new(nil, "MoreInfo")]]]

Instance Method Summary collapse

Constructor Details

#initialize(status = nil, message = nil, code = nil, moreInfo = nil) ⇒ RestException

Returns a new instance of RestException.



41
42
43
44
45
46
# File 'lib/splat/vendors/twilio/xml/twilio_xml.rb', line 41

def initialize(status = nil, message = nil, code = nil, moreInfo = nil)
  @status = status
  @message = message
  @code = code
  @moreInfo = moreInfo
end

Instance Method Details

#CodeObject



25
26
27
# File 'lib/splat/vendors/twilio/xml/twilio_xml.rb', line 25

def Code
  @code
end

#Code=(value) ⇒ Object



29
30
31
# File 'lib/splat/vendors/twilio/xml/twilio_xml.rb', line 29

def Code=(value)
  @code = value
end

#MessageObject



17
18
19
# File 'lib/splat/vendors/twilio/xml/twilio_xml.rb', line 17

def Message
  @message
end

#Message=(value) ⇒ Object



21
22
23
# File 'lib/splat/vendors/twilio/xml/twilio_xml.rb', line 21

def Message=(value)
  @message = value
end

#MoreInfoObject



33
34
35
# File 'lib/splat/vendors/twilio/xml/twilio_xml.rb', line 33

def MoreInfo
  @moreInfo
end

#MoreInfo=(value) ⇒ Object



37
38
39
# File 'lib/splat/vendors/twilio/xml/twilio_xml.rb', line 37

def MoreInfo=(value)
  @moreInfo = value
end

#StatusObject



9
10
11
# File 'lib/splat/vendors/twilio/xml/twilio_xml.rb', line 9

def Status
  @status
end

#Status=(value) ⇒ Object



13
14
15
# File 'lib/splat/vendors/twilio/xml/twilio_xml.rb', line 13

def Status=(value)
  @status = value
end