Class: Bbs::ThreadBase

Inherits:
Object
  • Object
show all
Defined in:
lib/bbiff/bbs_reader.rb

Direct Known Subclasses

Nichan::Thread, Shitaraba::Thread

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(board, id, title, last) ⇒ ThreadBase

Returns a new instance of ThreadBase.



197
198
199
200
201
202
# File 'lib/bbiff/bbs_reader.rb', line 197

def initialize(board, id, title, last)
  @board = board
  @id = id
  @title = title
  @last = last
end

Instance Attribute Details

#boardObject (readonly)

Returns the value of attribute board.



195
196
197
# File 'lib/bbiff/bbs_reader.rb', line 195

def board
  @board
end

#idObject (readonly)

Returns the value of attribute id.



195
196
197
# File 'lib/bbiff/bbs_reader.rb', line 195

def id
  @id
end

#lastObject (readonly)

Returns the value of attribute last.



195
196
197
# File 'lib/bbiff/bbs_reader.rb', line 195

def last
  @last
end

#titleObject (readonly)

Returns the value of attribute title.



195
196
197
# File 'lib/bbiff/bbs_reader.rb', line 195

def title
  @title
end

Instance Method Details

#dat_urlObject



204
205
206
# File 'lib/bbiff/bbs_reader.rb', line 204

def dat_url
  @board.dat_url(@id)
end