class HaveAPI::ValidationError

Public Class Methods

new(msg, errors = {}) click to toggle source
Calls superclass method
# File lib/haveapi/params.rb, line 6
def initialize(msg, errors = {})
  super(msg)
  @errors = errors
end

Public Instance Methods

to_hash() click to toggle source
# File lib/haveapi/params.rb, line 11
def to_hash
  @errors
end