Sha256: 567bb806d17aa7ada32c2de51117fb270546778a0deb7a8329a85d96aa019beb

Contents?: true

Size: 1.08 KB

Versions: 2

Compression:

Stored size: 1.08 KB

Contents

require_relative 'rice_bubble/version'
require_relative 'rice_bubble/attributes'
require_relative 'rice_bubble/attributes/base'
require_relative 'rice_bubble/attributes/any'
require_relative 'rice_bubble/attributes/array'
require_relative 'rice_bubble/attributes/boolean'
require_relative 'rice_bubble/attributes/date'
require_relative 'rice_bubble/attributes/datetime'
require_relative 'rice_bubble/attributes/enum'
require_relative 'rice_bubble/attributes/number'
require_relative 'rice_bubble/attributes/integer'
require_relative 'rice_bubble/attributes/literal'
require_relative 'rice_bubble/attributes/object'
require_relative 'rice_bubble/attributes/optional'
require_relative 'rice_bubble/attributes/serialized'
require_relative 'rice_bubble/attributes/string'
require_relative 'rice_bubble/attributes/time'
require_relative 'rice_bubble/serializer'

module RiceBubble
  class ValidationError < StandardError
    attr_reader :value, :path, :attribute

    def initialize(value:, path:, attribute:)
      super("#{path} expected #{attribute.description} but received #{value.inspect}")
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rice_bubble-0.2.1 lib/rice_bubble.rb
rice_bubble-0.2.0 lib/rice_bubble.rb