class BalboaParkItineraryIdeas::Itinerary
Attributes
attractions[RW]
summary[RW]
title[RW]
url[RW]
Public Class Methods
all()
click to toggle source
# File lib/balboa_park_itinerary_ideas/itinerary.rb, line 6 def self.all @@all end
find(id)
click to toggle source
returns the itinerary that matches the user input
# File lib/balboa_park_itinerary_ideas/itinerary.rb, line 15 def self.find(id) self.all[id-1] end
Public Instance Methods
save()
click to toggle source
# File lib/balboa_park_itinerary_ideas/itinerary.rb, line 10 def save @@all << self end