Class: Shale::Schema::XMLGenerator::RefElement Private

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

Instance Method Summary collapse

Methods inherited from Element

#as_xml

Constructor Details

#initialize(ref:, default: nil, collection: false, required: false) ⇒ RefElement

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

Parameters:

  • ref (String)
  • default (String, nil) (defaults to: nil)
  • collection (true, false) (defaults to: false)
  • required (true, false) (defaults to: false)


21
22
23
24
# File 'lib/shale/schema/xml_generator/ref_element.rb', line 21

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