Class: API_Fuzzer::Error

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Error

Returns a new instance of Error.



5
6
7
8
9
# File 'lib/API_Fuzzer/error.rb', line 5

def initialize(options = {})
  @description = options.delete(:description) || nil
  @status = options.delete(:status)
  @value = options.delete(:value)
end

Instance Attribute Details

#descriptionObject

Returns the value of attribute description.



3
4
5
# File 'lib/API_Fuzzer/error.rb', line 3

def description
  @description
end

#statusObject

Returns the value of attribute status.



3
4
5
# File 'lib/API_Fuzzer/error.rb', line 3

def status
  @status
end

#valueObject

Returns the value of attribute value.



3
4
5
# File 'lib/API_Fuzzer/error.rb', line 3

def value
  @value
end