Class: VORuby::STC::V1_10::Coords::PixSize

Inherits:
Object
  • Object
show all
Includes:
CPixSize
Defined in:
lib/voruby/stc/1.10/coords.rb

Overview

double

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods included from CPixSize

#==, #to_s

Methods included from SerializableToXml

#element

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

#valueObject

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_xmlObject



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