Sha256: 948905d6950a6ee5c144c94b757a909b6e4e3c7ec99e9024f8820396174a2357
Contents?: true
Size: 457 Bytes
Versions: 19
Compression:
Stored size: 457 Bytes
Contents
module Spyke class NormalizedValidationError ERROR_KEY = :error def initialize(attributes) @attributes = attributes end def message case @attributes when String @attributes when Hash @attributes[ERROR_KEY].to_sym end end def options case @attributes when String {} when Hash @attributes.except(ERROR_KEY).symbolize_keys end end end end
Version data entries
19 entries across 19 versions & 1 rubygems