Class: Reve::Classes::APIError

Inherits:
Object
  • Object
show all
Defined in:
lib/reve/classes.rb

Overview

This is just for getting the list and writing to test/xml/errors

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(elem) ⇒ APIError

Returns a new instance of APIError



894
895
896
897
# File 'lib/reve/classes.rb', line 894

def initialize(elem)
  @code = elem['errorCode'].to_i
  @text = elem['errorText']
end

Instance Attribute Details

#codeObject (readonly)

:nodoc:



893
894
895
# File 'lib/reve/classes.rb', line 893

def code
  @code
end

#textObject (readonly)

:nodoc:



893
894
895
# File 'lib/reve/classes.rb', line 893

def text
  @text
end