Class: Lutaml::Model::Schema::XmlCompiler::ComplexContent
- Inherits:
-
Object
- Object
- Lutaml::Model::Schema::XmlCompiler::ComplexContent
- Defined in:
- lib/lutaml/model/schema/xml_compiler/complex_content.rb
Instance Attribute Summary collapse
-
#restriction ⇒ Object
Returns the value of attribute restriction.
Instance Method Summary collapse
-
#initialize(restriction = nil) ⇒ ComplexContent
constructor
A new instance of ComplexContent.
- #required_files ⇒ Object
- #to_attributes(indent) ⇒ Object
- #to_xml_mapping(indent) ⇒ Object
Constructor Details
#initialize(restriction = nil) ⇒ ComplexContent
Returns a new instance of ComplexContent.
8 9 10 |
# File 'lib/lutaml/model/schema/xml_compiler/complex_content.rb', line 8 def initialize(restriction = nil) @restriction = restriction end |
Instance Attribute Details
#restriction ⇒ Object
Returns the value of attribute restriction.
6 7 8 |
# File 'lib/lutaml/model/schema/xml_compiler/complex_content.rb', line 6 def restriction @restriction end |
Instance Method Details
#required_files ⇒ Object
20 21 22 |
# File 'lib/lutaml/model/schema/xml_compiler/complex_content.rb', line 20 def required_files restriction&.required_files end |
#to_attributes(indent) ⇒ Object
12 13 14 |
# File 'lib/lutaml/model/schema/xml_compiler/complex_content.rb', line 12 def to_attributes(indent) restriction&.to_attributes(indent) end |
#to_xml_mapping(indent) ⇒ Object
16 17 18 |
# File 'lib/lutaml/model/schema/xml_compiler/complex_content.rb', line 16 def to_xml_mapping(indent) restriction&.to_xml_mapping(indent) end |