class SwCharacters::Planet
Attributes
climate[RW]
name[RW]
planet_id[RW]
terrain[RW]
Public Class Methods
all()
click to toggle source
# File lib/sw_characters/planet.rb, line 13 def self.all @@all end
new(name, id, climate, terrain)
click to toggle source
# File lib/sw_characters/planet.rb, line 5 def initialize(name, id, climate, terrain) self.name = name self.planet_id = id self.climate = climate self.terrain = terrain self.class.all[self.planet_id] = self end