Class: Code42Api::ErrorMessage

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, type = STANDARD_ERROR) ⇒ ErrorMessage

Returns a new instance of ErrorMessage.



85
86
87
88
# File 'lib/code42_api/errors.rb', line 85

def initialize(message, type = STANDARD_ERROR)
  @type = type
  super(message)
end

Instance Attribute Details

#typeObject (readonly)

Returns the value of attribute type.



83
84
85
# File 'lib/code42_api/errors.rb', line 83

def type
  @type
end