Exception: OxfordDictionary::Error
- Inherits:
-
StandardError
- Object
- StandardError
- OxfordDictionary::Error
- Defined in:
- lib/oxford_dictionary/error.rb
Overview
Basic class for errors
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(code) ⇒ Error
constructor
A new instance of Error.
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
#code ⇒ Object (readonly)
Returns the value of attribute code.
4 5 6 |
# File 'lib/oxford_dictionary/error.rb', line 4 def code @code end |