Class: Shale::Mapping::Descriptor::XmlNamespace Private

Inherits:
Object
  • Object
show all
Defined in:
lib/shale/mapping/descriptor/xml_namespace.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Class representing XML namespace

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, prefix = nil) ⇒ XmlNamespace

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Initialize instance

Parameters:

  • name (String, nil) (defaults to: nil)
  • prefix (String, nil) (defaults to: nil)


30
31
32
33
# File 'lib/shale/mapping/descriptor/xml_namespace.rb', line 30

def initialize(name = nil, prefix = nil)
  @name = name
  @prefix = prefix
end

Instance Attribute Details

#nameString

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Return name

Returns:

  • (String)


15
16
17
# File 'lib/shale/mapping/descriptor/xml_namespace.rb', line 15

def name
  @name
end

#prefixString

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Return prefix

Returns:

  • (String)


22
23
24
# File 'lib/shale/mapping/descriptor/xml_namespace.rb', line 22

def prefix
  @prefix
end