Class: Bagel::Tennis::Stats::Stat

Inherits:
Object
  • Object
show all
Defined in:
lib/bagel/tennis/stats/stat.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#pointsObject (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

#nameObject



10
11
12
# File 'lib/bagel/tennis/stats/stat.rb', line 10

def name
  raise_not_implemented_error(self.class, __method__)
end

#superiorObject



18
19
20
# File 'lib/bagel/tennis/stats/stat.rb', line 18

def superior
  raise_not_implemented_error(self.class, __method__)
end

#valuesObject



14
15
16
# File 'lib/bagel/tennis/stats/stat.rb', line 14

def values
  raise_not_implemented_error(self.class, __method__)
end