Class: JustGo::Territory
- Inherits:
-
Object
- Object
- JustGo::Territory
- Extended by:
- Forwardable
- Defined in:
- lib/just_go/territory.rb
Overview
Territory
A collection of Points with the same territory id
Instance Attribute Summary collapse
-
#points ⇒ Object
readonly
Returns the value of attribute points.
Instance Method Summary collapse
-
#initialize(points: []) ⇒ Territory
constructor
A new instance of Territory.
Constructor Details
#initialize(points: []) ⇒ Territory
11 12 13 |
# File 'lib/just_go/territory.rb', line 11 def initialize(points: []) @points = points end |
Instance Attribute Details
#points ⇒ Object (readonly)
Returns the value of attribute points.
15 16 17 |
# File 'lib/just_go/territory.rb', line 15 def points @points end |