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

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

Overview

One generated Lutaml::Model::Serializable subclass.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_nameObject

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

#documentationObject

Returns the value of attribute documentation.



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

def documentation
  @documentation
end

#importsObject

Returns the value of attribute imports.



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

def imports
  @imports
end

#lazy_registerObject

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

#membersObject

Returns the value of attribute members.



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

def members
  @members
end

#mixedObject

Returns the value of attribute mixed.



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

def mixed
  @mixed
end

#module_wrappableObject

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_nameObject

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_classObject

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_filesObject

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_contentObject

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_contentObject

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_rootObject

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