Exception: Wot::Api::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/wot/api/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
10
11
# File 'lib/wot/api/error.rb', line 5

def initialize(options)
  super options[:message]
  @field = options[:field]
  @message = options[:message]
  @code = options[:code]
  @value = options[:value]
end

Instance Attribute Details

#codeObject

Returns the value of attribute code.



4
5
6
# File 'lib/wot/api/error.rb', line 4

def code
  @code
end

#fieldObject

Returns the value of attribute field.



4
5
6
# File 'lib/wot/api/error.rb', line 4

def field
  @field
end

#messageObject

Returns the value of attribute message.



4
5
6
# File 'lib/wot/api/error.rb', line 4

def message
  @message
end

#valueObject

Returns the value of attribute value.



4
5
6
# File 'lib/wot/api/error.rb', line 4

def value
  @value
end