Class: Wikidotrb::Module::PageVoteCollection
- Inherits:
-
Array
- Object
- Array
- Wikidotrb::Module::PageVoteCollection
- Defined in:
- lib/wikidotrb/module/page_votes.rb
Instance Attribute Summary collapse
-
#page
Returns the value of attribute page.
Instance Method Summary collapse
-
#initialize(page:, votes: []) ⇒ PageVoteCollection
constructor
初期化メソッド.
Constructor Details
#initialize(page:, votes: []) ⇒ PageVoteCollection
初期化メソッド
11 12 13 14 |
# File 'lib/wikidotrb/module/page_votes.rb', line 11 def initialize(page:, votes: []) super(votes) @page = page end |
Instance Attribute Details
#page
Returns the value of attribute page.
6 7 8 |
# File 'lib/wikidotrb/module/page_votes.rb', line 6 def page @page end |