class Dbsketch::Model::CheckConstraint
Attributes
condition[R]
Public Class Methods
new(name, condition, meaning: nil, comment: nil)
click to toggle source
Calls superclass method
# File lib/dbsketch/model/check_constraint.rb, line 11 def initialize name, condition, meaning: nil, comment: nil super name, :meaning => meaning, :comment => comment ### Preconditions raise ArgumentError, "condition is not a String" unless condition.is_a? String ### @condition = condition end