Method: XingApi::Error#initialize

Defined in:
lib/xing_api/error.rb

#initialize(status_code, name = '', text = '', errors = []) ⇒ Error

Returns a new instance of Error.



5
6
7
8
9
10
11
# 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