Class: Lutaml::Xsd::NamespaceMapping
- Inherits:
-
Model::Serializable
- Object
- Model::Serializable
- Lutaml::Xsd::NamespaceMapping
- Defined in:
- lib/lutaml/xsd/namespace_mapping.rb
Overview
Represents a namespace prefix to URI mapping
Class Method Summary collapse
-
.from_pair(prefix, uri) ⇒ NamespaceMapping
Create from a hash entry.
Instance Method Summary collapse
-
#to_hash ⇒ Hash
Convert to hash format.
Class Method Details
.from_pair(prefix, uri) ⇒ NamespaceMapping
Create from a hash entry
22 23 24 |
# File 'lib/lutaml/xsd/namespace_mapping.rb', line 22 def self.from_pair(prefix, uri) new(prefix: prefix, uri: uri) end |
Instance Method Details
#to_hash ⇒ Hash
Convert to hash format
28 29 30 |
# File 'lib/lutaml/xsd/namespace_mapping.rb', line 28 def to_hash { prefix => uri } end |