# frozen_string_literal: true module Lutaml module Model module XmlAdapter # Represents an XML attribute class XmlAttribute attr_reader :name, :value, :namespace, :namespace_prefix def initialize(name, value, namespace: nil, namespace_prefix: nil) @name = name @value = value @namespace = namespace @namespace_prefix = namespace_prefix end def unprefixed_name if namespace_prefix name.split(":").last else name end end end end end end