Class: VORuby::STC::V1_10::Coords::PixSize
- Inherits:
-
Object
- Object
- VORuby::STC::V1_10::Coords::PixSize
- Includes:
- CPixSize
- Defined in:
- lib/voruby/stc/1.10/coords.rb
Overview
double
Instance Attribute Summary collapse
-
#value ⇒ Object
Returns the value of attribute value.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(value) ⇒ PixSize
constructor
A new instance of PixSize.
- #to_xml ⇒ Object
Methods included from CPixSize
Methods included from SerializableToXml
Constructor Details
#initialize(value) ⇒ PixSize
Returns a new instance of PixSize.
619 620 621 |
# File 'lib/voruby/stc/1.10/coords.rb', line 619 def initialize(value) self.value = value end |
Instance Attribute Details
#value ⇒ Object
Returns the value of attribute value.
617 618 619 |
# File 'lib/voruby/stc/1.10/coords.rb', line 617 def value @value end |
Class Method Details
.from_xml(xml) ⇒ Object
634 635 636 |
# File 'lib/voruby/stc/1.10/coords.rb', line 634 def self.from_xml(xml) PixSize.new(element_from(xml).text) end |
Instance Method Details
#to_xml ⇒ Object
627 628 629 630 631 632 |
# File 'lib/voruby/stc/1.10/coords.rb', line 627 def to_xml el = element() el.text = self.value.to_s collapse_namespaces(el) el end |