Exception: Handwritingio::Error
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Handwritingio::Error
- Defined in:
- lib/handwritingio.rb
Overview
Error class for individual error descriptions
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#field ⇒ Object
readonly
Returns the value of attribute field.
Instance Method Summary collapse
-
#initialize(hash) ⇒ Error
constructor
:nodoc:.
-
#inspect ⇒ Object
:nodoc:.
Constructor Details
#initialize(hash) ⇒ Error
:nodoc:
231 232 233 234 |
# File 'lib/handwritingio.rb', line 231 def initialize(hash) #:nodoc: @error = hash['error'] @field = hash['field'] end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
229 230 231 |
# File 'lib/handwritingio.rb', line 229 def error @error end |
#field ⇒ Object (readonly)
Returns the value of attribute field.
229 230 231 |
# File 'lib/handwritingio.rb', line 229 def field @field end |
Instance Method Details
#inspect ⇒ Object
:nodoc:
236 237 238 |
# File 'lib/handwritingio.rb', line 236 def inspect #:nodoc: "#<#{self.class.name} #{self.error.inspect}>" end |