Class: VORuby::VOTables::VOTable::Data::TR
- Defined in:
- lib/voruby/votables/data.rb,
lib/voruby/votables/transforms.rb,
lib/voruby/votables/rexml_parser.rb,
lib/voruby/votables/libxml_parser.rb
Overview
A class representing the VOTable standard TR element.
Instance Attribute Summary collapse
-
#tds ⇒ Object
readonly
Returns the value of attribute tds.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(tds = []) ⇒ TR
constructor
- tds:
-
A list of table data belonging in the row in question.
- #to_s ⇒ Object
Constructor Details
Instance Attribute Details
#tds ⇒ Object (readonly)
Returns the value of attribute tds.
116 117 118 |
# File 'lib/voruby/votables/data.rb', line 116 def tds @tds end |
Class Method Details
.from_soap_obj(mtrs) ⇒ Object
354 355 356 357 358 359 360 361 362 363 364 365 |
# File 'lib/voruby/votables/transforms.rb', line 354 def self.from_soap_obj(mtrs) mtrs = [mtrs] if !mtrs.respond_to?(:each) trs = [] mtrs.each do |tr| trs.push( (tr.respond_to?(:tD))? TR.new(TD.from_soap_obj(tr.tD)): [] ) end trs end |
Instance Method Details
#to_s ⇒ Object
127 128 129 130 |
# File 'lib/voruby/votables/data.rb', line 127 def to_s tds = @tds.collect{|x| x.to_s}.join('|') "{tds=#{tds}}" end |