Class: Bagel::Tennis::Point
- Inherits:
-
Object
- Object
- Bagel::Tennis::Point
- Extended by:
- Forwardable
- Defined in:
- lib/bagel/tennis/point.rb
Instance Method Summary collapse
-
#initialize(timeframe:, score:, serve:, outcome:) ⇒ Point
constructor
A new instance of Point.
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 |