Class: EhbrsRubyUtils::Bga::Session

Inherits:
SimpleDelegator
  • Object
show all
Includes:
Urls
Defined in:
lib/ehbrs_ruby_utils/bga/session.rb,
lib/ehbrs_ruby_utils/bga/session/user.rb,
lib/ehbrs_ruby_utils/bga/session/login.rb,
lib/ehbrs_ruby_utils/bga/session/table.rb,
lib/ehbrs_ruby_utils/bga/session/player.rb,
lib/ehbrs_ruby_utils/bga/session/skip_trophies.rb,
lib/ehbrs_ruby_utils/bga/session/player_tables_on_game_stats.rb,
lib/ehbrs_ruby_utils/bga/session/player_tables_on_game_in_progress.rb

Defined Under Namespace

Modules: Login, SkipTrophies, User Classes: Player, PlayerTablesOnGameInProgress, PlayerTablesOnGameStats, Table

Constant Summary collapse

MESSAGE_ID =
'head_infomsg_1'

Constants included from Urls::InstanceMethods

Urls::InstanceMethods::ROOT_URL

Instance Method Summary collapse

Methods included from Urls::InstanceMethods

#build_url, #player_game_in_progress_url, #player_game_stats_url, #root_url, #table_url

Instance Method Details

#message_infoString?

Returns:

  • (String, nil)


22
23
24
# File 'lib/ehbrs_ruby_utils/bga/session.rb', line 22

def message_info
  find_or_not_element(id: MESSAGE_ID).if_present { |v| v.text.strip }
end

#player(id) ⇒ EhbrsRubyUtils::Bga::Session::Player



17
18
19
# File 'lib/ehbrs_ruby_utils/bga/session.rb', line 17

def player(id)
  ::EhbrsRubyUtils::Bga::Session::Player.new(self, id)
end