class Planet
Attributes
name[R]
population[R]
terrain[R]
Public Class Methods
new(planet)
click to toggle source
# File lib/star_wars_finder/planet.rb, line 3 def initialize(planet) @name = planet["name"] @terrain = planet["terrain"] @population = planet["population"] end