class XingApi::Error

Attributes

errors[R]
name[R]
status_code[R]
text[R]

Public Class Methods

new(status_code, name = '', text = '', errors = []) click to toggle source
Calls superclass method
# File lib/xing_api/error.rb, line 5
def initialize(status_code, name = '', text = '', errors = [])
  @status_code = status_code
  @name = name
  @text = text
  @errors = errors || []
  super(text)
end

Public Instance Methods

to_s() click to toggle source
# File lib/xing_api/error.rb, line 13
def to_s
  [status_code, name, text, errors.to_s].join(' - ')
end