class PHLCovidTesting::TestingLocation

Attributes

access_type[RW]
address[RW]
facility_type[RW]
name[RW]
phone[RW]
referral[RW]
street[RW]
zipcode[RW]

Public Class Methods

all() click to toggle source
# File lib/phl_covid_testing/testing_location.rb, line 24
def self.all
    @@all 
end
create_from_collection(array) click to toggle source
# File lib/phl_covid_testing/testing_location.rb, line 18
def self.create_from_collection(array)
    array.each do |hash|
      PHLCovidTesting::TestingLocation.new(hash)
    end
end
new(hash) click to toggle source
# File lib/phl_covid_testing/testing_location.rb, line 10
def initialize(hash)
    binding.pry
    hash.each do |k, v|
        self.send(("#{k}="), v)
    end
    @@all << self
end