Class: VORuby::VOTable::V1_0::Binary

Inherits:
Base show all
Defined in:
lib/voruby/votable/1.0/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())


1491
1492
1493
# File 'lib/voruby/votable/1.0/votable.rb', line 1491

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

Instance Method Details

#streamObject

Retrieve the stream (Stream) representing the data.



1496
1497
1498
# File 'lib/voruby/votable/1.0/votable.rb', line 1496

def stream
  get_element(Stream)
end

#stream=(s) ⇒ Object

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



1502
1503
1504
# File 'lib/voruby/votable/1.0/votable.rb', line 1502

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