Class: Nzbn::Models::ErrorResponse
- Defined in:
- lib/nzbn/models/error_response.rb
Overview
Error response from API
Instance Attribute Summary collapse
-
#error_code ⇒ Object
Returns the value of attribute error_code.
-
#error_description ⇒ Object
Returns the value of attribute error_description.
-
#list ⇒ Object
Returns the value of attribute list.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Nzbn::Models::Base
Instance Attribute Details
#error_code ⇒ Object
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_description ⇒ Object
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 |
#list ⇒ Object
Returns the value of attribute list.
7 8 9 |
# File 'lib/nzbn/models/error_response.rb', line 7 def list @list end |
#status ⇒ Object
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
#errors ⇒ Object
9 10 11 |
# File 'lib/nzbn/models/error_response.rb', line 9 def errors list || [] end |