Class: ClubHopper::Cielo

Inherits:
Object
  • Object
show all
Defined in:
lib/club_hopper/cielo.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#dateObject

Returns the value of attribute date.



2
3
4
# File 'lib/club_hopper/cielo.rb', line 2

def date
  @date
end

#nameObject

Returns the value of attribute name.



2
3
4
# File 'lib/club_hopper/cielo.rb', line 2

def name
  @name
end

Class Method Details

.scrape_friday_cieloclubObject



27
28
29
30
31
32
# 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_cieloObject



14
15
16
17
# File 'lib/club_hopper/cielo.rb', line 14

def self.scrape_friday_event_cielo
events = []
events << self.scrape_friday_cieloclub 
end

.scrape_saturday_cieloclubObject



35
36
37
38
39
40
41
# 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_cieloObject



20
21
22
23
# File 'lib/club_hopper/cielo.rb', line 20

def self.scrape_saturday_event_cielo
events = []
events << self.scrape_saturday_cieloclub 
end

.this_friday_cieloObject



6
7
8
# File 'lib/club_hopper/cielo.rb', line 6

def self.this_friday_cielo   
self.scrape_friday_event_cielo
end

.this_saturday_cieloObject



10
11
12
# File 'lib/club_hopper/cielo.rb', line 10

def self.this_saturday_cielo   
self.scrape_saturday_event_cielo
end