class BrewerySearch::Brewery
Attributes
address[RW]
city[RW]
facebook[RW]
instagram[RW]
name[RW]
overview[RW]
phone[RW]
site_url[RW]
state[RW]
twitter[RW]
type[RW]
website[RW]
youtube[RW]
Public Class Methods
all()
click to toggle source
# File lib/brewery_search/brewery.rb, line 18 def self.all @@all end
find_by_city(city_input)
click to toggle source
# File lib/brewery_search/brewery.rb, line 14 def self.find_by_city(city_input) self.all.select {|entry| entry.city == city_input} end
find_by_state(state_input)
click to toggle source
# File lib/brewery_search/brewery.rb, line 10 def self.find_by_state(state_input) self.all.select {|entry| entry.state == state_input} end
new()
click to toggle source
# File lib/brewery_search/brewery.rb, line 6 def initialize @@all << self end