Class: VORuby::STC::V1_30::STCBaseType
- Inherits:
-
Object
- Object
- VORuby::STC::V1_30::STCBaseType
- Includes:
- STCReference
- Defined in:
- lib/voruby/stc/1.30/stc.rb
Overview
STC standard base type. Elements of derived types may contain real content, be a reference to another element in the document (idref), or be a reference to a distributed resource; the href is to be a standard IVOA identifier or a valid URL. Actuation is up to the client. At this time it is required to be of type simple. An id is optional; it allows referencing by other elements.
Direct Known Subclasses
CoordAreaType, CoordFrameType, CoordIntervalType, CoordSysType, CoordinateType, CoordsType, Double2Type, Double3Type, Double4Type, Double9Type, STCMetadataType
Instance Attribute Summary
Attributes included from STCReference
#id, #idref, #ucd, #xlink_href, #xlink_type
Class Method Summary collapse
Instance Method Summary collapse
- #==(o) ⇒ Object
-
#initialize(options = {}) ⇒ STCBaseType
constructor
A new instance of STCBaseType.
- #to_xml(name = nil) ⇒ Object
Methods included from STCReference
#stc_reference_eq, stc_reference_from_xml, #stc_reference_to_xml
Methods included from SerializableToXml
Constructor Details
#initialize(options = {}) ⇒ STCBaseType
Returns a new instance of STCBaseType.
269 270 271 |
# File 'lib/voruby/stc/1.30/stc.rb', line 269 def initialize(={}) .each { |key, value| send("#{key}=", value) } end |
Class Method Details
.stc_base_from_xml(root) ⇒ Object
281 282 283 |
# File 'lib/voruby/stc/1.30/stc.rb', line 281 def self.stc_base_from_xml(root) STCReference.stc_reference_from_xml(root) end |
Instance Method Details
#==(o) ⇒ Object
273 274 275 |
# File 'lib/voruby/stc/1.30/stc.rb', line 273 def ==(o) self.stc_reference_eq(o) end |
#to_xml(name = nil) ⇒ Object
277 278 279 |
# File 'lib/voruby/stc/1.30/stc.rb', line 277 def to_xml(name=nil) stc_reference_to_xml(element(name)) end |