Class: Stupidedi::Schema::Generation::Models::Element
- Inherits:
-
Struct
- Object
- Struct
- Stupidedi::Schema::Generation::Models::Element
- Defined in:
- lib/stupidedi/schema/generation/models.rb
Overview
A data element or composite (distinguished by #is_composite). Simple elements carry x12_type/min_length/max_length/digits and, for ID elements, element_codes. Composites carry component_uses.
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#component_uses ⇒ Object
Returns the value of attribute component_uses.
-
#description ⇒ Object
Returns the value of attribute description.
-
#digits ⇒ Object
Returns the value of attribute digits.
-
#element_codes ⇒ Object
Returns the value of attribute element_codes.
-
#is_composite ⇒ Object
Returns the value of attribute is_composite.
-
#max_length ⇒ Object
Returns the value of attribute max_length.
-
#min_length ⇒ Object
Returns the value of attribute min_length.
-
#name ⇒ Object
Returns the value of attribute name.
-
#x12_type ⇒ Object
Returns the value of attribute x12_type.
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code
24 25 26 |
# File 'lib/stupidedi/schema/generation/models.rb', line 24 def code @code end |
#component_uses ⇒ Object
Returns the value of attribute component_uses
24 25 26 |
# File 'lib/stupidedi/schema/generation/models.rb', line 24 def component_uses @component_uses end |
#description ⇒ Object
Returns the value of attribute description
24 25 26 |
# File 'lib/stupidedi/schema/generation/models.rb', line 24 def description @description end |
#digits ⇒ Object
Returns the value of attribute digits
24 25 26 |
# File 'lib/stupidedi/schema/generation/models.rb', line 24 def digits @digits end |
#element_codes ⇒ Object
Returns the value of attribute element_codes
24 25 26 |
# File 'lib/stupidedi/schema/generation/models.rb', line 24 def element_codes @element_codes end |
#is_composite ⇒ Object
Returns the value of attribute is_composite
24 25 26 |
# File 'lib/stupidedi/schema/generation/models.rb', line 24 def is_composite @is_composite end |
#max_length ⇒ Object
Returns the value of attribute max_length
24 25 26 |
# File 'lib/stupidedi/schema/generation/models.rb', line 24 def max_length @max_length end |
#min_length ⇒ Object
Returns the value of attribute min_length
24 25 26 |
# File 'lib/stupidedi/schema/generation/models.rb', line 24 def min_length @min_length end |
#name ⇒ Object
Returns the value of attribute name
24 25 26 |
# File 'lib/stupidedi/schema/generation/models.rb', line 24 def name @name end |
#x12_type ⇒ Object
Returns the value of attribute x12_type
24 25 26 |
# File 'lib/stupidedi/schema/generation/models.rb', line 24 def x12_type @x12_type end |