Method: GeoWorks::Coverage#initialize

Defined in:
app/values/geo_works/coverage.rb

#initialize(n, e, s, w) ⇒ Coverage

Returns a new instance of Coverage.



23
24
25
26
27
28
29
30
# File 'app/values/geo_works/coverage.rb', line 23

def initialize(n, e, s, w)
  raise InvalidGeometryError, "n=#{n} < s=#{s}" if n.to_f < s.to_f
  raise InvalidGeometryError, "e=#{e} < w=#{w}" if e.to_f < w.to_f
  @n = n
  @e = e
  @s = s
  @w = w
end