Class: ApkXml::XmlAttribute

Inherits:
Struct
  • Object
show all
Defined in:
lib/apktools/apkxml.rb

Overview

Structure defining an XML element’s attribute

XmlAttribute = Struct.new(:namespace, :name, :raw, :value)

  • namespace = Namespace prefix of the attribute

  • name = Name of the attribute

  • value = Value of the attribute

Instance Attribute Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



88
89
90
# File 'lib/apktools/apkxml.rb', line 88

def name
  @name
end

#namespaceObject

Returns the value of attribute namespace

Returns:

  • (Object)

    the current value of namespace



88
89
90
# File 'lib/apktools/apkxml.rb', line 88

def namespace
  @namespace
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



88
89
90
# File 'lib/apktools/apkxml.rb', line 88

def value
  @value
end