Class: VORuby::STC::V1_10::Coords::CoordinateType

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

Overview

Abstract coordinate type; a concrete Coordinate consists of a Value, Error, Resolution, Size, and PixSize

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from SerializableToXml

#element

Constructor Details

#initialize(options) ⇒ CoordinateType

Returns a new instance of CoordinateType.



651
652
653
654
655
656
657
# File 'lib/voruby/stc/1.10/coords.rb', line 651

def initialize(options)
  if options.is_a?(Hash)
    options.each { |key, value| send("#{key}=", value) }
  else
    self.name = options
  end
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



649
650
651
# File 'lib/voruby/stc/1.10/coords.rb', line 649

def name
  @name
end

Instance Method Details

#==(c) ⇒ Object



663
664
665
# File 'lib/voruby/stc/1.10/coords.rb', line 663

def ==(c)
  self.name == c.name
end