Class: Simple2ch::Dat
- Inherits:
-
Object
- Object
- Simple2ch::Dat
- Defined in:
- lib/simple2ch/dat.rb
Instance Attribute Summary collapse
-
#thread_key ⇒ String
readonly
スレッドキー.
-
#title ⇒ String
readonly
タイトル.
Instance Method Summary collapse
-
#initialize(thre) ⇒ Dat
constructor
A new instance of Dat.
-
#kako_log? ⇒ Boolean
Datを解析して過去ログかどうかを返す.
-
#reses ⇒ Array<Res>
Datを解析して、レスを返す.
Constructor Details
#initialize(thre) ⇒ Dat
Returns a new instance of Dat.
9 10 11 12 13 14 15 |
# File 'lib/simple2ch/dat.rb', line 9 def initialize(thre) @thre = thre @thread_key = thre.thread_key @data = nil @reses = nil @f_kako_log = nil end |
Instance Attribute Details
#thread_key ⇒ String (readonly)
Returns スレッドキー.
4 5 6 |
# File 'lib/simple2ch/dat.rb', line 4 def thread_key @thread_key end |
#title ⇒ String (readonly)
Returns タイトル.
6 7 8 |
# File 'lib/simple2ch/dat.rb', line 6 def title @title end |
Instance Method Details
#kako_log? ⇒ Boolean
Datを解析して過去ログかどうかを返す
26 27 28 29 |
# File 'lib/simple2ch/dat.rb', line 26 def kako_log? parse_dat if @f_kako_log.nil? @f_kako_log end |
#reses ⇒ Array<Res>
Datを解析して、レスを返す
19 20 21 22 |
# File 'lib/simple2ch/dat.rb', line 19 def reses parse_dat unless @reses @reses end |