Class: Lutaml::Model::Schema::Definitions::Facet

Inherits:
Object
  • Object
show all
Defined in:
lib/lutaml/model/schema/definitions/facet.rb

Overview

Facet container for restricted simple types. Every field is optional; nil means "facet not present".

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(min_inclusive: nil, max_inclusive: nil, min_exclusive: nil, max_exclusive: nil, pattern: nil, enumerations: nil, min_length: nil, max_length: nil, length: nil, total_digits: nil, fraction_digits: nil, white_space: nil) ⇒ Facet

Returns a new instance of Facet.



17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'lib/lutaml/model/schema/definitions/facet.rb', line 17

def initialize(min_inclusive: nil, max_inclusive: nil,
               min_exclusive: nil, max_exclusive: nil,
               pattern: nil, enumerations: nil,
               min_length: nil, max_length: nil, length: nil,
               total_digits: nil, fraction_digits: nil,
               white_space: nil)
  @min_inclusive = min_inclusive
  @max_inclusive = max_inclusive
  @min_exclusive = min_exclusive
  @max_exclusive = max_exclusive
  @pattern = pattern
  @enumerations = enumerations
  @min_length = min_length
  @max_length = max_length
  @length = length
  @total_digits = total_digits
  @fraction_digits = fraction_digits
  @white_space = white_space
end

Instance Attribute Details

#enumerationsObject

Returns the value of attribute enumerations.



10
11
12
# File 'lib/lutaml/model/schema/definitions/facet.rb', line 10

def enumerations
  @enumerations
end

#fraction_digitsObject

Returns the value of attribute fraction_digits.



10
11
12
# File 'lib/lutaml/model/schema/definitions/facet.rb', line 10

def fraction_digits
  @fraction_digits
end

#lengthObject

Returns the value of attribute length.



10
11
12
# File 'lib/lutaml/model/schema/definitions/facet.rb', line 10

def length
  @length
end

#max_exclusiveObject

Returns the value of attribute max_exclusive.



10
11
12
# File 'lib/lutaml/model/schema/definitions/facet.rb', line 10

def max_exclusive
  @max_exclusive
end

#max_inclusiveObject

Returns the value of attribute max_inclusive.



10
11
12
# File 'lib/lutaml/model/schema/definitions/facet.rb', line 10

def max_inclusive
  @max_inclusive
end

#max_lengthObject

Returns the value of attribute max_length.



10
11
12
# File 'lib/lutaml/model/schema/definitions/facet.rb', line 10

def max_length
  @max_length
end

#min_exclusiveObject

Returns the value of attribute min_exclusive.



10
11
12
# File 'lib/lutaml/model/schema/definitions/facet.rb', line 10

def min_exclusive
  @min_exclusive
end

#min_inclusiveObject

Returns the value of attribute min_inclusive.



10
11
12
# File 'lib/lutaml/model/schema/definitions/facet.rb', line 10

def min_inclusive
  @min_inclusive
end

#min_lengthObject

Returns the value of attribute min_length.



10
11
12
# File 'lib/lutaml/model/schema/definitions/facet.rb', line 10

def min_length
  @min_length
end

#patternObject

Returns the value of attribute pattern.



10
11
12
# File 'lib/lutaml/model/schema/definitions/facet.rb', line 10

def pattern
  @pattern
end

#total_digitsObject

Returns the value of attribute total_digits.



10
11
12
# File 'lib/lutaml/model/schema/definitions/facet.rb', line 10

def total_digits
  @total_digits
end

#white_spaceObject

Returns the value of attribute white_space.



10
11
12
# File 'lib/lutaml/model/schema/definitions/facet.rb', line 10

def white_space
  @white_space
end