Class: Nzbn::Models::ErrorResponse

Inherits:
Base
  • Object
show all
Defined in:
lib/nzbn/models/error_response.rb

Overview

Error response from API

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#initialize, #to_h, #to_json

Constructor Details

This class inherits a constructor from Nzbn::Models::Base

Instance Attribute Details

#error_codeObject

Returns the value of attribute error_code.



7
8
9
# File 'lib/nzbn/models/error_response.rb', line 7

def error_code
  @error_code
end

#error_descriptionObject

Returns the value of attribute error_description.



7
8
9
# File 'lib/nzbn/models/error_response.rb', line 7

def error_description
  @error_description
end

#listObject

Returns the value of attribute list.



7
8
9
# File 'lib/nzbn/models/error_response.rb', line 7

def list
  @list
end

#statusObject

Returns the value of attribute status.



7
8
9
# File 'lib/nzbn/models/error_response.rb', line 7

def status
  @status
end

Instance Method Details

#errorsObject



9
10
11
# File 'lib/nzbn/models/error_response.rb', line 9

def errors
  list || []
end