Class: Shale::Schema::XMLGenerator::RefAttribute Private

Inherits:
Attribute
  • Object
show all
Defined in:
lib/shale/schema/xml_generator/ref_attribute.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 Schema <attribute ref=“”> element with a reference

Instance Method Summary collapse

Methods inherited from Attribute

#as_xml

Constructor Details

#initialize(ref:, default: nil) ⇒ RefAttribute

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 RefAttribute object

Parameters:

  • ref (String)
  • default (String, nil) (defaults to: nil)


19
20
21
22
# File 'lib/shale/schema/xml_generator/ref_attribute.rb', line 19

def initialize(ref:, default: nil)
  super(default)
  @ref = ref
end