Class: ClubHopper::Cielo
- Inherits:
-
Object
- Object
- ClubHopper::Cielo
- Defined in:
- lib/club_hopper/cielo.rb
Instance Attribute Summary collapse
-
#date ⇒ Object
Returns the value of attribute date.
-
#name ⇒ Object
Returns the value of attribute name.
Class Method Summary collapse
- .scrape_friday_cieloclub ⇒ Object
- .scrape_friday_event_cielo ⇒ Object
- .scrape_saturday_cieloclub ⇒ Object
- .scrape_saturday_event_cielo ⇒ Object
- .this_friday_cielo ⇒ Object
- .this_saturday_cielo ⇒ Object
Instance Attribute Details
#date ⇒ Object
Returns the value of attribute date.
2 3 4 |
# File 'lib/club_hopper/cielo.rb', line 2 def date @date end |
#name ⇒ Object
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_cieloclub ⇒ Object
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_cielo ⇒ Object
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_cieloclub ⇒ Object
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_cielo ⇒ Object
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_cielo ⇒ Object
6 7 8 |
# File 'lib/club_hopper/cielo.rb', line 6 def self.this_friday_cielo self.scrape_friday_event_cielo end |
.this_saturday_cielo ⇒ Object
10 11 12 |
# File 'lib/club_hopper/cielo.rb', line 10 def self.this_saturday_cielo self.scrape_saturday_event_cielo end |