Class: VORuby::STC::V1_10::STC::StcMetadataType
- Inherits:
-
Object
- Object
- VORuby::STC::V1_10::STC::StcMetadataType
- Includes:
- SerializableToXml
- Defined in:
- lib/voruby/stc/1.10/stc.rb
Overview
Abstract stcMetadata type
Direct Known Subclasses
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
Instance Method Summary collapse
- #==(m) ⇒ Object
-
#initialize(options = {}) ⇒ StcMetadataType
constructor
A new instance of StcMetadataType.
- #to_xml(name = nil) ⇒ Object
Methods included from SerializableToXml
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(={}) .each { |key, value| send("#{key}=", value) } end |
Instance Attribute Details
#id ⇒ Object
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 |