class Mona::Board
Board
of 2ch.net
Attributes
board[R]
host[R]
Public Class Methods
new(host, board)
click to toggle source
initialize method¶ ↑
- host
-
subdomain
- board
-
board name
example¶ ↑
if you want to access hayabusa2.2ch.net/news4vip/
Mona::Board.new('hayabusa2', 'news4vip')
# File lib/mona/board.rb, line 18 def initialize(host, board) @host = host @board = board end
Public Instance Methods
threads()
click to toggle source
Private Instance Methods
connect()
click to toggle source
# File lib/mona/board.rb, line 44 def connect res = Mona::Client.new.get(dat_url) if res.status == 200 res.content.toutf8 end end