Class: Bagel::Tennis::Point

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/bagel/tennis/point.rb

Instance Method Summary collapse

Constructor Details

#initialize(timeframe:, score:, serve:, outcome:) ⇒ Point

Returns a new instance of Point.



10
11
12
13
14
15
# File 'lib/bagel/tennis/point.rb', line 10

def initialize(timeframe:, score:, serve:, outcome:)
  @timeframe = timeframe
  @score = score
  @serve = serve
  @outcome = outcome
end