Class: Astromapper::Builder::Companion

Inherits:
Orbit
  • Object
show all
Defined in:
lib/astromapper/builder/orbit.rb

Overview

End Orbit

Instance Attribute Summary

Attributes inherited from Orbit

#au, #id, #kid, #orbit_number, #port, #xsize

Attributes inherited from Base

#root_dir

Instance Method Summary collapse

Methods inherited from Orbit

#biozone?, #distant?, #inner?, #km, #limit?, #outer?, #period, #populate, #populate_biozone, #populate_inner, #populate_outer, #radii, #to_ascii, #to_s

Methods inherited from Base

#config, constitute, #names, #spawn_command, #toss

Constructor Details

#initialize(star, orbit_number, companion) ⇒ Companion

Returns a new instance of Companion.



97
98
99
100
101
102
# File 'lib/astromapper/builder/orbit.rb', line 97

def initialize(star,orbit_number,companion)
  @star = star
  @comp = companion
  super
  @kid = 'S'
end

Instance Method Details

#uwpObject



103
104
105
# File 'lib/astromapper/builder/orbit.rb', line 103

def uwp
  "%-9s" % [@comp.classification]
end