Exception: OxfordDictionary::Error

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

Overview

Basic class for errors

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code) ⇒ Error

Returns a new instance of Error.



6
7
8
# File 'lib/oxford_dictionary/error.rb', line 6

def initialize(code)
  @code = code
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



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

def code
  @code
end