Class: RubyConference
- Inherits:
-
Object
- Object
- RubyConference
- Defined in:
- lib/rubyconferenceby.rb
Class Method Summary collapse
Class Method Details
.by ⇒ Object
6 7 8 |
# File 'lib/rubyconferenceby.rb', line 6 def by self end |
.print_schedule ⇒ Object
20 21 22 23 24 25 26 27 28 29 |
# File 'lib/rubyconferenceby.rb', line 20 def print_schedule schedule.each do |row| if row[:presentor].empty? p "#{row[:when]} - #{row[:title]}" else p "#{row[:when]} - #{row[:title]} - #{row[:presentor]}" end end nil end |
.schedule ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/rubyconferenceby.rb', line 10 def schedule raw_schedule.map do |x| { when: x.at('span').text, title: x.at('h3').text.strip, presentor: x.at('a:last').text.strip } end end |