Class: EhbrsRubyUtils::Bga::Session
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- EhbrsRubyUtils::Bga::Session
- Includes:
- Urls
- Defined in:
- lib/ehbrs_ruby_utils/bga/session.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
Defined Under Namespace
Modules: Login, SkipTrophies Classes: Player, PlayerTablesOnGameStats, Table
Constant Summary collapse
- MESSAGE_ID =
'head_infomsg_1'
Constants included from Urls::InstanceMethods
Urls::InstanceMethods::ROOT_URL
Instance Method Summary collapse
- #message_info ⇒ String?
- #player(id) ⇒ EhbrsRubyUtils::Bga::Session::Player
- #waited_message_info ⇒ String
Methods included from Urls::InstanceMethods
#build_url, #player_game_stats_url, #root_url, #table_url
Instance Method Details
#message_info ⇒ String?
21 22 23 |
# File 'lib/ehbrs_ruby_utils/bga/session.rb', line 21 def find_or_not_element(id: MESSAGE_ID).if_present { |v| v.text.strip } end |
#player(id) ⇒ EhbrsRubyUtils::Bga::Session::Player
16 17 18 |
# File 'lib/ehbrs_ruby_utils/bga/session.rb', line 16 def player(id) ::EhbrsRubyUtils::Bga::Session::Player.new(self, id) end |
#waited_message_info ⇒ String
26 27 28 |
# File 'lib/ehbrs_ruby_utils/bga/session.rb', line 26 def wait_for_click(id: MESSAGE_ID).text end |