Class: RubyStackoverflow::Client::StackoverflowError

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby-stackoverflow/client/resource/stackoverflow_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_codeObject (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_messageObject (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
  @error_message
end

#error_nameObject (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