Class: Bagel::Tennis::Stats::Stat
- Inherits:
-
Object
- Object
- Bagel::Tennis::Stats::Stat
- Defined in:
- lib/bagel/tennis/stats/stat.rb
Direct Known Subclasses
Aces, BreakPointsWon, DoubleFaults, FirstServeIn, FirstServePointsWon, NetPointsWon, PointsWon, SecondServePointsWon, UnforcedErrors, Winners
Instance Attribute Summary collapse
-
#points ⇒ Object
readonly
Returns the value of attribute points.
Instance Method Summary collapse
-
#initialize(points) ⇒ Stat
constructor
A new instance of Stat.
- #name ⇒ Object
- #superior ⇒ Object
- #values ⇒ Object
Constructor Details
#initialize(points) ⇒ Stat
Returns a new instance of Stat.
5 6 7 8 |
# File 'lib/bagel/tennis/stats/stat.rb', line 5 def initialize(points) @points = points calculate end |
Instance Attribute Details
#points ⇒ Object (readonly)
Returns the value of attribute points.
3 4 5 |
# File 'lib/bagel/tennis/stats/stat.rb', line 3 def points @points end |
Instance Method Details
#name ⇒ Object
10 11 12 |
# File 'lib/bagel/tennis/stats/stat.rb', line 10 def name raise_not_implemented_error(self.class, __method__) end |
#superior ⇒ Object
18 19 20 |
# File 'lib/bagel/tennis/stats/stat.rb', line 18 def superior raise_not_implemented_error(self.class, __method__) end |
#values ⇒ Object
14 15 16 |
# File 'lib/bagel/tennis/stats/stat.rb', line 14 def values raise_not_implemented_error(self.class, __method__) end |