Module: TwHospital

Defined in:
lib/tw_hospital.rb,
lib/tw_hospital/version.rb

Constant Summary collapse

VERSION =
"0.0.3"

Class Method Summary collapse

Class Method Details

.fetch_allObject



38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# File 'lib/tw_hospital.rb', line 38

def TwHospital.fetch_all
    json = []
    json << Pohai.crawl
    json << Cgmh_kl.crawl
    json << Cgh.crawl
    json << Wanfang.crawl
    json << Ndmctsgh.crawl
    json << Vghtpe.crawl
    json << Ntuh_taipei.crawl
    json << Skh.crawl
    json << Shh.crawl
    json << Tzuchi.crawl
    json << Cgmh_lingko.crawl
    json << Csh.crawl
    json << Vghtc.crawl
    json << Cmuh.crawl
    json << Sltung.crawl
    json << Ktgh_shalu.crawl
    json << Ktgh_dajia.crawl
    json << Cch.crawl
    json << Cgmh_chayi.crawl
    json << Ntuh_yunlin.crawl
    json << Chimei.crawl
    json << Chimei_cl.crawl
    json << Chimei_ly.crawl
    json << Ncku.crawl
    json << Kmuh.crawl
    json << Edah.crawl
    json << Cgmh_ks.crawl
    json << Tzuchi_hl.crawl
    return json
end

.schedule_fetch_allObject



71
72
73
# File 'lib/tw_hospital.rb', line 71

def TwHospital.schedule_fetch_all

end