Class: Lutaml::Model::Schema::Definitions::XmlRoot
- Inherits:
-
Object
- Object
- Lutaml::Model::Schema::Definitions::XmlRoot
- Defined in:
- lib/lutaml/model/schema/definitions/xml_root.rb
Overview
XML root directive of a generated class. kind ∈ :type_name, :fragment. name is nil for :fragment.
Instance Attribute Summary collapse
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(kind:, name: nil) ⇒ XmlRoot
constructor
A new instance of XmlRoot.
Constructor Details
#initialize(kind:, name: nil) ⇒ XmlRoot
Returns a new instance of XmlRoot.
12 13 14 15 |
# File 'lib/lutaml/model/schema/definitions/xml_root.rb', line 12 def initialize(kind:, name: nil) @kind = kind @name = name end |
Instance Attribute Details
#kind ⇒ Object
Returns the value of attribute kind.
10 11 12 |
# File 'lib/lutaml/model/schema/definitions/xml_root.rb', line 10 def kind @kind end |
#name ⇒ Object
Returns the value of attribute name.
10 11 12 |
# File 'lib/lutaml/model/schema/definitions/xml_root.rb', line 10 def name @name end |