Class: Runaworld::Move
- Inherits:
-
Object
- Object
- Runaworld::Move
- Defined in:
- lib/runaworld/move.rb
Constant Summary collapse
- URL =
"https://www.youtube.com/channel/UCQYADFw7xEJ9oZSM5ZbqyBw/videos"
Class Method Summary collapse
Class Method Details
.get_move(in_no) ⇒ Object
15 16 17 18 19 20 |
# File 'lib/runaworld/move.rb', line 15 def get_move(in_no) move_no = in_no - 1 move_list = scraping_channel move = move_list[move_no] print_info(move_no, move[:title], move[:link]) end |
.get_move_list ⇒ Object
8 9 10 11 12 13 |
# File 'lib/runaworld/move.rb', line 8 def get_move_list move_list = scraping_channel move_list.each_with_index do |m,i| print_info(i + 1, m[:title], m[:link]) end end |