Class: DeviantArt::Error

Inherits:
Base
  • Object
show all
Defined in:
lib/deviantart/error.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#attrs

Instance Method Summary collapse

Methods inherited from Base

point_to_class, points_class_mapping, points_class_mapping=

Constructor Details

#initialize(json, status_code) ⇒ Error

Returns a new instance of Error.



7
8
9
10
# File 'lib/deviantart/error.rb', line 7

def initialize(json, status_code)
  super(json)
  @status_code = status_code
end

Instance Attribute Details

#errorObject

Returns the value of attribute error.



5
6
7
# File 'lib/deviantart/error.rb', line 5

def error
  @error
end

#error_codeObject

Returns the value of attribute error_code.



5
6
7
# File 'lib/deviantart/error.rb', line 5

def error_code
  @error_code
end

#error_descriptionObject

Returns the value of attribute error_description.



5
6
7
# File 'lib/deviantart/error.rb', line 5

def error_description
  @error_description
end

#error_detailsObject

Returns the value of attribute error_details.



5
6
7
# File 'lib/deviantart/error.rb', line 5

def error_details
  @error_details
end

#status_codeObject

Returns the value of attribute status_code.



5
6
7
# File 'lib/deviantart/error.rb', line 5

def status_code
  @status_code
end