Class: NetSuite::Error
- Inherits:
-
Object
- Object
- NetSuite::Error
- Defined in:
- lib/netsuite/errors.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#message ⇒ Object
Returns the value of attribute message.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(args = {}) ⇒ Error
Returns a new instance of Error.
9 10 11 12 13 |
# File 'lib/netsuite/errors.rb', line 9 def initialize(args = {}) @type = args[:@type] @code = args[:code] @message = args[:message] end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
7 8 9 |
# File 'lib/netsuite/errors.rb', line 7 def code @code end |
#message ⇒ Object
Returns the value of attribute message.
7 8 9 |
# File 'lib/netsuite/errors.rb', line 7 def @message end |
#type ⇒ Object
Returns the value of attribute type.
7 8 9 |
# File 'lib/netsuite/errors.rb', line 7 def type @type end |