class Api2ch::Request
Public Class Methods
new(board = 'b')
click to toggle source
# File lib/api_2ch/request.rb, line 3 def initialize(board = 'b') @board = board end
Public Instance Methods
call_full_threads(board, page = 'index')
click to toggle source
# File lib/api_2ch/request.rb, line 7 def call_full_threads(board, page = 'index') Api2ch::Threads.new(board, page).full end
call_latest_bump_threads(board)
click to toggle source
# File lib/api_2ch/request.rb, line 19 def call_latest_bump_threads(board) Api2ch::LatestThreads.new(board).call end
call_most_viewed_threads(board)
click to toggle source
# File lib/api_2ch/request.rb, line 23 def call_most_viewed_threads(board) Api2ch::ViewedThreads.new(board).call end
call_new_threads(board)
click to toggle source
# File lib/api_2ch/request.rb, line 27 def call_new_threads(board) Api2ch::NewThreads.new(board).call end
call_thread_posts(board, num)
click to toggle source
# File lib/api_2ch/request.rb, line 15 def call_thread_posts(board, num) Api2ch::Posts.new(board, num).call end
call_threads(board)
click to toggle source
# File lib/api_2ch/request.rb, line 11 def call_threads(board) Api2ch::Threads.new(board, nil).call end