Class: VORuby::STC::V1_10::STC::StcMetadataType

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

Overview

Abstract stcMetadata type

Direct Known Subclasses

ObsDataLocationType, StcDescription

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from SerializableToXml

#element

Constructor Details

#initialize(options = {}) ⇒ StcMetadataType

Returns a new instance of StcMetadataType.



2783
2784
2785
# File 'lib/voruby/stc/1.10/stc.rb', line 2783

def initialize(options={})
  options.each { |key, value| send("#{key}=", value) }
end

Instance Attribute Details

#idObject

Returns the value of attribute id.



2781
2782
2783
# File 'lib/voruby/stc/1.10/stc.rb', line 2781

def id
  @id
end

Instance Method Details

#==(m) ⇒ Object



2793
2794
2795
# File 'lib/voruby/stc/1.10/stc.rb', line 2793

def ==(m)
  self.id == m.id
end

#to_xml(name = nil) ⇒ Object



2797
2798
2799
2800
2801
# File 'lib/voruby/stc/1.10/stc.rb', line 2797

def to_xml(name=nil)
  el = element(name)
  el.attributes["#{obj_ns.prefix}:ID"] = self.id.to_s if self.id
  el
end