Class: Lutaml::Model::Schema::Definitions::Facet
- Inherits:
-
Object
- Object
- Lutaml::Model::Schema::Definitions::Facet
- 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
-
#enumerations ⇒ Object
Returns the value of attribute enumerations.
-
#fraction_digits ⇒ Object
Returns the value of attribute fraction_digits.
-
#length ⇒ Object
Returns the value of attribute length.
-
#max_exclusive ⇒ Object
Returns the value of attribute max_exclusive.
-
#max_inclusive ⇒ Object
Returns the value of attribute max_inclusive.
-
#max_length ⇒ Object
Returns the value of attribute max_length.
-
#min_exclusive ⇒ Object
Returns the value of attribute min_exclusive.
-
#min_inclusive ⇒ Object
Returns the value of attribute min_inclusive.
-
#min_length ⇒ Object
Returns the value of attribute min_length.
-
#pattern ⇒ Object
Returns the value of attribute pattern.
-
#total_digits ⇒ Object
Returns the value of attribute total_digits.
-
#white_space ⇒ Object
Returns the value of attribute white_space.
Instance Method Summary collapse
-
#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
constructor
A new instance of Facet.
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
#enumerations ⇒ Object
Returns the value of attribute enumerations.
10 11 12 |
# File 'lib/lutaml/model/schema/definitions/facet.rb', line 10 def enumerations @enumerations end |
#fraction_digits ⇒ Object
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 |
#length ⇒ Object
Returns the value of attribute length.
10 11 12 |
# File 'lib/lutaml/model/schema/definitions/facet.rb', line 10 def length @length end |
#max_exclusive ⇒ Object
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_inclusive ⇒ Object
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_length ⇒ Object
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_exclusive ⇒ Object
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_inclusive ⇒ Object
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_length ⇒ Object
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 |
#pattern ⇒ Object
Returns the value of attribute pattern.
10 11 12 |
# File 'lib/lutaml/model/schema/definitions/facet.rb', line 10 def pattern @pattern end |
#total_digits ⇒ Object
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_space ⇒ Object
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 |