Class: Colonization::Ship
- Inherits:
-
Object
- Object
- Colonization::Ship
- Defined in:
- lib/colonization/ship.rb
Instance Attribute Summary collapse
-
#colonizers ⇒ Object
readonly
Returns the value of attribute colonizers.
Instance Method Summary collapse
- #colonize ⇒ Object
-
#initialize ⇒ Ship
constructor
A new instance of Ship.
Constructor Details
#initialize ⇒ Ship
Returns a new instance of Ship.
8 9 10 11 |
# File 'lib/colonization/ship.rb', line 8 def initialize models = investigate_database @colonizers = get_colonizers(models) end |
Instance Attribute Details
#colonizers ⇒ Object (readonly)
Returns the value of attribute colonizers.
6 7 8 |
# File 'lib/colonization/ship.rb', line 6 def colonizers @colonizers end |
Instance Method Details
#colonize ⇒ Object
13 14 15 16 |
# File 'lib/colonization/ship.rb', line 13 def colonize clear_db populate end |