class Umbrella::Weather

Attributes

city[RW]
rain_perc[RW]
sunrise[RW]
sunset[RW]
temperature[RW]
weather_condition[RW]
wind[RW]

Public Class Methods

all() click to toggle source
# File lib/Umbrella/weather.rb, line 10
def self.all 
  @@all
end
find_by_city(city) click to toggle source
# File lib/Umbrella/weather.rb, line 14
def self.find_by_city(city)
  self.all.find{|a| a.city == city}
end

Public Instance Methods

save() click to toggle source
# File lib/Umbrella/weather.rb, line 6
def save
  @@all << self 
end