Module: Pokerstats::HandStatisticsAPI
- Defined in:
- lib/pokerstats/hand_statistics_api.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
- #apply_action(action, street) ⇒ Object
- #automatic_report(screen_name) ⇒ Object
- #initialize(handstatistics) ⇒ Object
- #register_player(screen_name, street, player_hash) ⇒ Object
- #report(screen_name) ⇒ Object
- #street_transition(street) ⇒ Object
- #street_transition_for_player(street, player) ⇒ Object
Class Method Details
.exposed_methods ⇒ Object
7 8 9 |
# File 'lib/pokerstats/hand_statistics_api.rb', line 7 def self.exposed_methods self.public_instance_methods - StatisticsHolder.public_instance_methods end |
Instance Method Details
#apply_action(action, street) ⇒ Object
24 25 |
# File 'lib/pokerstats/hand_statistics_api.rb', line 24 def apply_action action, street end |
#automatic_report(screen_name) ⇒ Object
27 28 29 30 31 32 33 |
# File 'lib/pokerstats/hand_statistics_api.rb', line 27 def automatic_report screen_name result = {} self.class.report_specification.each do |each| result[each[0]] = send(each[2], screen_name) end result end |
#initialize(handstatistics) ⇒ Object
3 4 5 |
# File 'lib/pokerstats/hand_statistics_api.rb', line 3 def initialize handstatistics @hand_statistics = handstatistics end |
#register_player(screen_name, street, player_hash) ⇒ Object
15 16 |
# File 'lib/pokerstats/hand_statistics_api.rb', line 15 def register_player screen_name, street, player_hash end |
#report(screen_name) ⇒ Object
11 12 13 |
# File 'lib/pokerstats/hand_statistics_api.rb', line 11 def report screen_name automatic_report screen_name end |
#street_transition(street) ⇒ Object
18 19 |
# File 'lib/pokerstats/hand_statistics_api.rb', line 18 def street_transition street end |
#street_transition_for_player(street, player) ⇒ Object
21 22 |
# File 'lib/pokerstats/hand_statistics_api.rb', line 21 def street_transition_for_player street, player end |