Class: MaimaiNet::Page::FinaleArchive

Inherits:
Base
  • Object
show all
Defined in:
lib/maimai_net/page.rb

Constant Summary collapse

STAT_KEYS =
i(
  count_clear
  count_s    count_sp
  count_ss   count_ssp
  count_sss  count_max
  count_fc   count_gfc count_ap
  count_sync_play
  count_mf count_tmf count_sync_max
).freeze
STAT_FIELDS =
{
  ranks: [
    i(count_s count_sp count_ss count_ssp count_sss count_max),
    i(s s+ ss ss+ sss max),
  ],
  flags: [
    i(count_fc count_gfc count_ap),
    i(fc gfc ap),
  ],
  sync_flags: [
    i(count_sync_play count_sync_max),
    i(play max),
  ],
  multi_flags: [
    i(count_mf count_tmf),
    i(max_fever strong_max_fever),
  ]
}.freeze

Instance Method Summary collapse

Methods inherited from Base

#initialize, parse, #validate!

Methods included from HelperSupport

extended, #helper_method, #method_added

Methods included from ModuleExt::MethodCache

included, #singleton_method_added

Methods included from ModuleExt::HaveClassMethods

#class_method, #included

Constructor Details

This class inherits a constructor from MaimaiNet::Page::Base

Instance Method Details

#initialize_extensionvoid

This method returns an undefined value.



516
517
518
519
520
521
522
523
# File 'lib/maimai_net/page.rb', line 516

def initialize_extension
  super

  @root = @root.at_css('.finale_area')
  @gameplay_block = @root.at_css('.see_through_block:nth-of-type(1)')
  @collection_block = @root.at_css('.see_through_block:nth-of-type(2)')
  @player_block = @root.at_css('.basic_block')
end