Class: Lutaml::Model::MinExclusiveError

Inherits:
RestrictionError show all
Defined in:
lib/lutaml/model/error/min_exclusive_error.rb

Instance Method Summary collapse

Constructor Details

#initialize(attr_name, value, min) ⇒ MinExclusiveError

Returns a new instance of MinExclusiveError.



6
7
8
9
10
11
12
# File 'lib/lutaml/model/error/min_exclusive_error.rb', line 6

def initialize(attr_name, value, min)
  @attr_name = attr_name
  @value = value
  @min = min

  super()
end

Instance Method Details

#to_sObject



14
15
16
# File 'lib/lutaml/model/error/min_exclusive_error.rb', line 14

def to_s
  "#{@attr_name} is `#{@value}`, must be greater than #{@min}"
end