Exception: Handwritingio::Error

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/handwritingio.rb

Overview

Error class for individual error descriptions

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#errorObject (readonly)

Returns the value of attribute error.



229
230
231
# File 'lib/handwritingio.rb', line 229

def error
  @error
end

#fieldObject (readonly)

Returns the value of attribute field.



229
230
231
# File 'lib/handwritingio.rb', line 229

def field
  @field
end

Instance Method Details

#inspectObject

:nodoc:



236
237
238
# File 'lib/handwritingio.rb', line 236

def inspect #:nodoc:
  "#<#{self.class.name} #{self.error.inspect}>"
end