Class: Supportify::Error
- Inherits:
-
BaseObject
- Object
- BaseObject
- Supportify::Error
- Defined in:
- lib/supportify_client/models/error.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#long_description ⇒ Object
Returns the value of attribute long_description.
-
#short_description ⇒ Object
Returns the value of attribute short_description.
Class Method Summary collapse
-
.attribute_map ⇒ Object
attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
attribute type.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Error
constructor
A new instance of Error.
Methods inherited from BaseObject
#_deserialize, #_to_hash, #build_from_hash, #to_body, #to_hash, #to_s
Constructor Details
#initialize(attributes = {}) ⇒ Error
Returns a new instance of Error.
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/supportify_client/models/error.rb', line 31 def initialize(attributes = {}) return if !attributes.is_a?(Hash) || attributes.empty? # convert string to symbol for hash key attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo} if attributes[:'code'] self.code = attributes[:'code'] end if attributes[:'short_description'] self.short_description = attributes[:'short_description'] end if attributes[:'long_description'] self.long_description = attributes[:'long_description'] end end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
4 5 6 |
# File 'lib/supportify_client/models/error.rb', line 4 def code @code end |
#long_description ⇒ Object
Returns the value of attribute long_description.
4 5 6 |
# File 'lib/supportify_client/models/error.rb', line 4 def long_description @long_description end |
#short_description ⇒ Object
Returns the value of attribute short_description.
4 5 6 |
# File 'lib/supportify_client/models/error.rb', line 4 def short_description @short_description end |
Class Method Details
.attribute_map ⇒ Object
attribute mapping from ruby-style variable name to JSON key
6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/supportify_client/models/error.rb', line 6 def self.attribute_map { # An HTTP error code. :'code' => :'code', # A short keyword describing the error that occurred. :'short_description' => :'short_description', # A more detailed description of the cause of the error. :'long_description' => :'long_description' } end |
.swagger_types ⇒ Object
attribute type
22 23 24 25 26 27 28 29 |
# File 'lib/supportify_client/models/error.rb', line 22 def self.swagger_types { :'code' => :'Integer', :'short_description' => :'String', :'long_description' => :'String' } end |