Class: VORuby::ADQL::Shape

Inherits:
Object show all
Defined in:
lib/voruby/adql/adql.rb

Overview

Abstract Shape type. Shape definitions; Allsky, Circle, Polygon, Box, and Sector are derived from Shape; Ellipse is derived from Circle; Polygon includes also Vertex and SmallCircle

Direct Known Subclasses

Box, Circle

Class Method Summary collapse

Class Method Details

.from_xml(node) ⇒ Object



1672
1673
1674
1675
1676
# File 'lib/voruby/adql/adql.rb', line 1672

def self.from_xml(node)
  type_s = node.find_attribute('type', 'http://www.w3.org/2001/XMLSchema-instance')
  type_s = type_s.slice(type_s.index(':')+1, type_s.length)
  return ObjectBuilder.get_class_for(type_s).from_xml(node)
end