Class: Tarantool::Schema::MismatchError
- Defined in:
- tarantool-schema/lib/tarantool/schema/errors.rb
Overview
The live schema differs from the declaration. apply raises it before creating anything, and again if what it created does not verify afterwards.
Instance Attribute Summary collapse
-
#mismatches ⇒ Object
readonly
Returns the value of attribute mismatches.
Instance Method Summary collapse
-
#initialize(by_space) ⇒ MismatchError
constructor
A new instance of MismatchError.
Constructor Details
#initialize(by_space) ⇒ MismatchError
Returns a new instance of MismatchError.
13 14 15 16 |
# File 'tarantool-schema/lib/tarantool/schema/errors.rb', line 13 def initialize(by_space) @mismatches = by_space.flat_map { |space, lines| lines.map { |line| "space #{space}: #{line}" } } super(describe(by_space)) end |
Instance Attribute Details
#mismatches ⇒ Object (readonly)
Returns the value of attribute mismatches.
11 12 13 |
# File 'tarantool-schema/lib/tarantool/schema/errors.rb', line 11 def mismatches @mismatches end |