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

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#kindObject

Returns the value of attribute kind.



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

def kind
  @kind
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end