Class: Lutaml::Model::Schema::Definitions::Model
- Inherits:
-
Object
- Object
- Lutaml::Model::Schema::Definitions::Model
- Defined in:
- lib/lutaml/model/schema/definitions/model.rb
Overview
One generated Lutaml::Model::Serializable subclass.
Instance Attribute Summary collapse
-
#class_name ⇒ Object
Returns the value of attribute class_name.
-
#documentation ⇒ Object
Returns the value of attribute documentation.
-
#imports ⇒ Object
Returns the value of attribute imports.
-
#lazy_register ⇒ Object
Returns the value of attribute lazy_register.
-
#members ⇒ Object
Returns the value of attribute members.
-
#mixed ⇒ Object
Returns the value of attribute mixed.
-
#module_wrappable ⇒ Object
Returns the value of attribute module_wrappable.
-
#namespace_class_name ⇒ Object
Returns the value of attribute namespace_class_name.
-
#parent_class ⇒ Object
Returns the value of attribute parent_class.
-
#required_files ⇒ Object
Returns the value of attribute required_files.
-
#simple_content ⇒ Object
Returns the value of attribute simple_content.
-
#text_content ⇒ Object
Returns the value of attribute text_content.
-
#xml_root ⇒ Object
Returns the value of attribute xml_root.
Instance Method Summary collapse
-
#initialize(class_name:, xml_root:, members: [], parent_class: "Lutaml::Model::Serializable", namespace_class_name: nil, mixed: false, text_content: false, imports: [], documentation: nil, simple_content: nil, required_files: [], module_wrappable: true, lazy_register: false) ⇒ Model
constructor
A new instance of Model.
Constructor Details
#initialize(class_name:, xml_root:, members: [], parent_class: "Lutaml::Model::Serializable", namespace_class_name: nil, mixed: false, text_content: false, imports: [], documentation: nil, simple_content: nil, required_files: [], module_wrappable: true, lazy_register: false) ⇒ Model
Returns a new instance of Model.
15 16 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/model.rb', line 15 def initialize(class_name:, xml_root:, members: [], parent_class: "Lutaml::Model::Serializable", namespace_class_name: nil, mixed: false, text_content: false, imports: [], documentation: nil, simple_content: nil, required_files: [], module_wrappable: true, lazy_register: false) @class_name = class_name @xml_root = xml_root @members = members @parent_class = parent_class @namespace_class_name = namespace_class_name @mixed = mixed @text_content = text_content @imports = imports @documentation = documentation @simple_content = simple_content @required_files = required_files @module_wrappable = module_wrappable @lazy_register = lazy_register end |
Instance Attribute Details
#class_name ⇒ Object
Returns the value of attribute class_name.
9 10 11 |
# File 'lib/lutaml/model/schema/definitions/model.rb', line 9 def class_name @class_name end |
#documentation ⇒ Object
Returns the value of attribute documentation.
9 10 11 |
# File 'lib/lutaml/model/schema/definitions/model.rb', line 9 def documentation @documentation end |
#imports ⇒ Object
Returns the value of attribute imports.
9 10 11 |
# File 'lib/lutaml/model/schema/definitions/model.rb', line 9 def imports @imports end |
#lazy_register ⇒ Object
Returns the value of attribute lazy_register.
9 10 11 |
# File 'lib/lutaml/model/schema/definitions/model.rb', line 9 def lazy_register @lazy_register end |
#members ⇒ Object
Returns the value of attribute members.
9 10 11 |
# File 'lib/lutaml/model/schema/definitions/model.rb', line 9 def members @members end |
#mixed ⇒ Object
Returns the value of attribute mixed.
9 10 11 |
# File 'lib/lutaml/model/schema/definitions/model.rb', line 9 def mixed @mixed end |
#module_wrappable ⇒ Object
Returns the value of attribute module_wrappable.
9 10 11 |
# File 'lib/lutaml/model/schema/definitions/model.rb', line 9 def module_wrappable @module_wrappable end |
#namespace_class_name ⇒ Object
Returns the value of attribute namespace_class_name.
9 10 11 |
# File 'lib/lutaml/model/schema/definitions/model.rb', line 9 def namespace_class_name @namespace_class_name end |
#parent_class ⇒ Object
Returns the value of attribute parent_class.
9 10 11 |
# File 'lib/lutaml/model/schema/definitions/model.rb', line 9 def parent_class @parent_class end |
#required_files ⇒ Object
Returns the value of attribute required_files.
9 10 11 |
# File 'lib/lutaml/model/schema/definitions/model.rb', line 9 def required_files @required_files end |
#simple_content ⇒ Object
Returns the value of attribute simple_content.
9 10 11 |
# File 'lib/lutaml/model/schema/definitions/model.rb', line 9 def simple_content @simple_content end |
#text_content ⇒ Object
Returns the value of attribute text_content.
9 10 11 |
# File 'lib/lutaml/model/schema/definitions/model.rb', line 9 def text_content @text_content end |
#xml_root ⇒ Object
Returns the value of attribute xml_root.
9 10 11 |
# File 'lib/lutaml/model/schema/definitions/model.rb', line 9 def xml_root @xml_root end |