Class: Ephem::IO::RecordData

Inherits:
Object
  • Object
show all
Defined in:
lib/ephem/io/record_data.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*data) ⇒ RecordData

Returns a new instance of RecordData.



10
11
12
13
14
15
16
17
# File 'lib/ephem/io/record_data.rb', line 10

def initialize(*data)
  @locator_identifier, @double_count, @integer_count, @internal_filename,
    @forward_record, @backward_record, @free_record, @format,
    @reserved_area_1, @ftpstr, @reserved_area_2 = data

  convert_numeric_fields
  strip_text_fields
end

Instance Attribute Details

#backward_recordObject (readonly)

Returns the value of attribute backward_record.



6
7
8
# File 'lib/ephem/io/record_data.rb', line 6

def backward_record
  @backward_record
end

#double_countObject (readonly)

Returns the value of attribute double_count.



6
7
8
# File 'lib/ephem/io/record_data.rb', line 6

def double_count
  @double_count
end

#formatObject (readonly)

Returns the value of attribute format.



6
7
8
# File 'lib/ephem/io/record_data.rb', line 6

def format
  @format
end

#forward_recordObject (readonly)

Returns the value of attribute forward_record.



6
7
8
# File 'lib/ephem/io/record_data.rb', line 6

def forward_record
  @forward_record
end

#free_recordObject (readonly)

Returns the value of attribute free_record.



6
7
8
# File 'lib/ephem/io/record_data.rb', line 6

def free_record
  @free_record
end

#ftpstrObject (readonly)

Returns the value of attribute ftpstr.



6
7
8
# File 'lib/ephem/io/record_data.rb', line 6

def ftpstr
  @ftpstr
end

#integer_countObject (readonly)

Returns the value of attribute integer_count.



6
7
8
# File 'lib/ephem/io/record_data.rb', line 6

def integer_count
  @integer_count
end

#internal_filenameObject (readonly)

Returns the value of attribute internal_filename.



6
7
8
# File 'lib/ephem/io/record_data.rb', line 6

def internal_filename
  @internal_filename
end

#locator_identifierObject (readonly)

Returns the value of attribute locator_identifier.



6
7
8
# File 'lib/ephem/io/record_data.rb', line 6

def locator_identifier
  @locator_identifier
end

#reserved_area_1Object (readonly)

Returns the value of attribute reserved_area_1.



6
7
8
# File 'lib/ephem/io/record_data.rb', line 6

def reserved_area_1
  @reserved_area_1
end

#reserved_area_2Object (readonly)

Returns the value of attribute reserved_area_2.



6
7
8
# File 'lib/ephem/io/record_data.rb', line 6

def reserved_area_2
  @reserved_area_2
end