Class: Greentext::Board

Inherits:
Base
  • Object
show all
Defined in:
lib/greentext/board.rb

Overview

Public: (Model) A 4chan board.

Instance Attribute Summary collapse

Attributes inherited from Base

#attrs

Instance Method Summary collapse

Methods inherited from Base

attr_epoch, attr_predicate, attr_reader, #initialize

Constructor Details

This class inherits a constructor from Greentext::Base

Instance Attribute Details

#boardObject (readonly)

Returns the value of attribute board.



6
7
8
# File 'lib/greentext/board.rb', line 6

def board
  @board
end

#nameObject (readonly)

Returns the value of attribute name.



6
7
8
# File 'lib/greentext/board.rb', line 6

def name
  @name
end

#pagesObject (readonly)

Returns the value of attribute pages.



9
10
11
# File 'lib/greentext/board.rb', line 9

def pages
  @pages
end

#per_pageObject (readonly)

Returns the value of attribute per_page.



8
9
10
# File 'lib/greentext/board.rb', line 8

def per_page
  @per_page
end

#posts_per_pageObject (readonly)

Returns the value of attribute posts_per_page.



8
9
10
# File 'lib/greentext/board.rb', line 8

def posts_per_page
  @posts_per_page
end

#titleObject (readonly)

Returns the value of attribute title.



7
8
9
# File 'lib/greentext/board.rb', line 7

def title
  @title
end

Instance Method Details

#threadsObject



12
13
14
# File 'lib/greentext/board.rb', line 12

def threads
  Greentext.client.threads(self)
end