Class: VORuby::VOTable::V1_1::Binary

Inherits:
Base show all
Defined in:
lib/voruby/votable/1.1/votable.rb

Overview

Tabular data represented as a binary format.

Constant Summary collapse

ELEMENT_NAME =
'BINARY'

Instance Attribute Summary

Attributes inherited from XML::Object::Base

#node

Instance Method Summary collapse

Methods inherited from Base

#==, element_name, #get_element, #xpath_for

Methods inherited from XML::Object::Base

#==, element_name, from_file, #to_s

Constructor Details

#initialize(defn = nil) ⇒ Binary

Create a new binary table.

binary = Binary.new(:stream => Stream.new())


1779
1780
1781
# File 'lib/voruby/votable/1.1/votable.rb', line 1779

def initialize(defn=nil)
  super(defn)
end

Instance Method Details

#streamObject

Retrieve the stream (Stream) representing the data.



1784
1785
1786
# File 'lib/voruby/votable/1.1/votable.rb', line 1784

def stream
  get_element(Stream)
end

#stream=(s) ⇒ Object

Set the stream representing the data. binary.stream = Stream.new()



1790
1791
1792
# File 'lib/voruby/votable/1.1/votable.rb', line 1790

def stream=(s)
  set_element(Stream, s)
end