Class: Pic2ch::Thread::Static

Inherits:
Pic2ch::Thread show all
Defined in:
lib/pic2ch/thread/static.rb

Instance Attribute Summary collapse

Attributes inherited from Pic2ch::Thread

#created, #link, #name, #star

Instance Method Summary collapse

Methods inherited from Pic2ch::Thread

#download, #downloader, #parser

Constructor Details

#initialize(code) ⇒ Static

Returns a new instance of Static.



7
8
9
10
# File 'lib/pic2ch/thread/static.rb', line 7

def initialize(code)
  @code = code.to_i
  @url  = Pic2ch.url + "/thread/#{@code}"
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



4
5
6
# File 'lib/pic2ch/thread/static.rb', line 4

def code
  @code
end

#urlObject (readonly)

Returns the value of attribute url.



5
6
7
# File 'lib/pic2ch/thread/static.rb', line 5

def url
  @url
end