Class: NetSuite::Error

Inherits:
Object
  • Object
show all
Defined in:
lib/netsuite/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#codeObject

Returns the value of attribute code.



7
8
9
# File 'lib/netsuite/errors.rb', line 7

def code
  @code
end

#messageObject

Returns the value of attribute message.



7
8
9
# File 'lib/netsuite/errors.rb', line 7

def message
  @message
end

#typeObject

Returns the value of attribute type.



7
8
9
# File 'lib/netsuite/errors.rb', line 7

def type
  @type
end