class ClubHopper::Cielo

Attributes

date[RW]
name[RW]

Public Class Methods

scrape_friday_cieloclub() click to toggle source
# File lib/club_hopper/cielo.rb, line 27
def self.scrape_friday_cieloclub 
html = Nokogiri::HTML(open("http://cieloclub.com"))
event = self.new
event.name = html.css("#main > div.col.col1 > div > ul > li.tfly-event-id-1225303.tfly-org-id-3635.tfly-venue-id-32 > a").text.strip
event
end
scrape_friday_event_cielo() click to toggle source
# File lib/club_hopper/cielo.rb, line 14
def self.scrape_friday_event_cielo
events = []
events << self.scrape_friday_cieloclub 
end
scrape_saturday_cieloclub() click to toggle source
# File lib/club_hopper/cielo.rb, line 35
def self.scrape_saturday_cieloclub 
html = Nokogiri::HTML(open("http://cieloclub.com"))
event = self.new
event.name = html.css("#main > div.col.col1 > div > ul > li.tfly-event-id-1222421.tfly-org-id-3635.tfly-venue-id-32 > a").text.strip
   
event
end
scrape_saturday_event_cielo() click to toggle source
# File lib/club_hopper/cielo.rb, line 20
def self.scrape_saturday_event_cielo
events = []
events << self.scrape_saturday_cieloclub 
end
this_friday_cielo() click to toggle source
# File lib/club_hopper/cielo.rb, line 6
def self.this_friday_cielo   
self.scrape_friday_event_cielo
end
this_saturday_cielo() click to toggle source
# File lib/club_hopper/cielo.rb, line 10
def self.this_saturday_cielo   
self.scrape_saturday_event_cielo
end