Class: VORuby::VOTables::VOTable::Data::TableData
- 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 TABLEDATA element.
Instance Attribute Summary collapse
- 
  
    
      #trs  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute trs. 
Class Method Summary collapse
Instance Method Summary collapse
- 
  
    
      #initialize(trs = [])  ⇒ TableData 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    - trs:
- 
A list of rows associated with the table in question. 
 
- #to_s ⇒ Object
Constructor Details
Instance Attribute Details
#trs ⇒ Object (readonly)
Returns the value of attribute trs.
| 135 136 137 | # File 'lib/voruby/votables/data.rb', line 135 def trs @trs end | 
Class Method Details
.from_soap_obj(mtbldata) ⇒ Object
| 346 347 348 349 350 | # File 'lib/voruby/votables/transforms.rb', line 346 def self.from_soap_obj(mtbldata) TableData.new( (mtbldata.respond_to?(:tR))? TR.from_soap_obj(mtbldata.tR): [] ) end | 
Instance Method Details
#to_s ⇒ Object
| 146 147 148 149 | # File 'lib/voruby/votables/data.rb', line 146 def to_s trs = @trs.collect{|x| x.to_s}.join('|') "{trs=#{trs}}" end |