Class: RubyStackoverflow::Client::StackoverflowError
- Inherits:
-
Object
- Object
- RubyStackoverflow::Client::StackoverflowError
- Defined in:
- lib/ruby-stackoverflow/client/resource/stackoverflow_error.rb
Instance Attribute Summary collapse
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
-
#error_message ⇒ Object
readonly
Returns the value of attribute error_message.
-
#error_name ⇒ Object
readonly
Returns the value of attribute error_name.
Instance Method Summary collapse
-
#initialize(params) ⇒ StackoverflowError
constructor
A new instance of StackoverflowError.
Constructor Details
#initialize(params) ⇒ StackoverflowError
Returns a new instance of StackoverflowError.
6 7 8 9 10 |
# File 'lib/ruby-stackoverflow/client/resource/stackoverflow_error.rb', line 6 def initialize(params) @error_name = params[:error_name] @error_code = params[:error_id] @error_message = params[:error_message] end |
Instance Attribute Details
#error_code ⇒ Object (readonly)
Returns the value of attribute error_code.
4 5 6 |
# File 'lib/ruby-stackoverflow/client/resource/stackoverflow_error.rb', line 4 def error_code @error_code end |
#error_message ⇒ Object (readonly)
Returns the value of attribute error_message.
4 5 6 |
# File 'lib/ruby-stackoverflow/client/resource/stackoverflow_error.rb', line 4 def @error_message end |
#error_name ⇒ Object (readonly)
Returns the value of attribute error_name.
4 5 6 |
# File 'lib/ruby-stackoverflow/client/resource/stackoverflow_error.rb', line 4 def error_name @error_name end |