Class: VORuby::STC::V1_30::PixelVector1CoordinateType
- Inherits:
-
CoordinateType
- Object
- STCBaseType
- CoordinateType
- VORuby::STC::V1_30::PixelVector1CoordinateType
- Defined in:
- lib/voruby/stc/1.30/stc.rb
Overview
Scalar pixel coordinate type.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#value ⇒ Object
Returns the value of attribute value.
Attributes inherited from CoordinateType
Attributes included from STCReference
#id, #idref, #ucd, #xlink_href, #xlink_type
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from CoordinateType
Methods inherited from STCBaseType
#initialize, stc_base_from_xml
Methods included from STCReference
#stc_reference_eq, stc_reference_from_xml, #stc_reference_to_xml
Methods included from SerializableToXml
Constructor Details
This class inherits a constructor from VORuby::STC::V1_30::STCBaseType
Instance Attribute Details
#value ⇒ Object
Returns the value of attribute value.
1595 1596 1597 |
# File 'lib/voruby/stc/1.30/stc.rb', line 1595 def value @value end |
Class Method Details
.from_xml(xml) ⇒ Object
1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 |
# File 'lib/voruby/stc/1.30/stc.rb', line 1618 def self.from_xml(xml) root = element_from(xml) = CoordinateType.coordinate_from_xml(root) value = REXML::XPath.first(root, 'x:Value', {'x' => obj_ns.uri}) [:value] = Value.from_xml(value) if value self.new() end |
Instance Method Details
#==(c) ⇒ Object
1605 1606 1607 1608 |
# File 'lib/voruby/stc/1.30/stc.rb', line 1605 def ==(c) super(c) and self.value == c.value end |
#to_xml(name = nil) ⇒ Object
1610 1611 1612 1613 1614 1615 1616 |
# File 'lib/voruby/stc/1.30/stc.rb', line 1610 def to_xml(name=nil) el = super(name) el.add_element(self.value.to_xml) if self.value collapse_namespaces(el) el end |