Class: JustGo::Territory

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#pointsObject (readonly)

Returns the value of attribute points.



15
16
17
# File 'lib/just_go/territory.rb', line 15

def points
  @points
end