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

- (APIError) initialize(elem)

Returns a new instance of APIError



849
850
851
852
# File 'lib/reve/classes.rb', line 849

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

Instance Attribute Details

- (Object) code (readonly)

:nodoc:



848
849
850
# File 'lib/reve/classes.rb', line 848

def code
  @code
end

- (Object) text (readonly)

:nodoc:



848
849
850
# File 'lib/reve/classes.rb', line 848

def text
  @text
end