Class: Shale::Schema::XMLGenerator::TypedAttribute Private
- Defined in:
- lib/shale/schema/xml_generator/typed_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 name=“” type=“”> element with a name and a type
Instance Attribute Summary collapse
-
#name ⇒ String
readonly
private
Return name.
Instance Method Summary collapse
-
#initialize(name:, type:, default: nil) ⇒ TypedAttribute
constructor
private
Initialize TypedAttribute object.
Methods inherited from Attribute
Constructor Details
#initialize(name:, type:, default: nil) ⇒ TypedAttribute
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 TypedAttribute object
27 28 29 30 31 |
# File 'lib/shale/schema/xml_generator/typed_attribute.rb', line 27 def initialize(name:, type:, default: nil) super(default) @name = name @type = type end |
Instance Attribute Details
#name ⇒ String (readonly)
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
18 19 20 |
# File 'lib/shale/schema/xml_generator/typed_attribute.rb', line 18 def name @name end |