Sha256: 14edcd3f4ee7cdee6ed3f819f49d85aa55bad793aaac32cd483a8c508bceffef

Contents?: true

Size: 1.48 KB

Versions: 4

Compression:

Stored size: 1.48 KB

Contents

class Star < GlowingGasBall
  
  extend CsvPirate::PirateShip::ActMethods
  has_csv_pirate_ship :booty => [ :name, :distance, :spectral_type, {:name => :hash}, {:name => :next}, {:name => :upcase}, :star_vowels ],
                      :spyglasses => [:get_stars],
                      :chart => ["spec","csv","Star"],
                      :chronometer => false,
                      :gibbet => "",
                      :aft => ".csv",
                      :swab => :none,
                      :mop => :clean, 
                      :waggoner => 'data'

  def self.get_stars
    [
    Star.new(:name => "Proxima Centauri", :distance => "4.2 LY", :spectral_type => "M5.5Vc"),
    Star.new(:name => "Rigil Kentaurus", :distance => "4.3 LY", :spectral_type => "G2V"),
    Star.new(:name => "Barnard's Star", :distance => "5.9 LY", :spectral_type => "M3.8V"),
    Star.new(:name => "Wolf 359", :distance => "7.7 LY", :spectral_type => "M5.8Vc"),
    Star.new(:name => "Lalande 21185", :distance => "8.26 LY", :spectral_type => "M2V"),
    Star.new(:name => "Luyten 726-8A and B", :distance => "8.73 LY", :spectral_type => "M5.5 de & M6 Ve"),
    Star.new(:name => "Sirius A and B", :distance => "8.6 LY", :spectral_type => "A1Vm"),
    Star.new(:name => "Ross 154", :distance => "9.693 LY", :spectral_type => "M3.5"),
    Star.new(:name => "Ross 248", :distance => "10.32 LY", :spectral_type => "M5.5V"),
    Star.new(:name => "Epsilon Eridani", :distance => "10.5 LY", :spectral_type => "K2V")
    ]
  end
  
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
csv_pirate-5.0.4 spec/spec_helpers/star.rb
csv_pirate-5.0.2 spec/spec_helpers/star.rb
csv_pirate-5.0.1 spec/spec_helpers/star.rb
csv_pirate-5.0.0 spec/spec_helpers/star.rb