Class: Citywrapper::Coverage

Inherits:
ApiBase
  • Object
show all
Defined in:
lib/citywrapper/resources/coverage.rb

Constant Summary

Constants inherited from ApiBase

ApiBase::JSON_HEADERS

Instance Attribute Summary

Attributes inherited from ApiBase

#config, #response

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from ApiBase

#request

Constructor Details

#initializeCoverage

Returns a new instance of Coverage.



5
6
7
8
# File 'lib/citywrapper/resources/coverage.rb', line 5

def initialize
  super
  @resource = 'coverage'
end

Class Method Details

.for_points(points = []) ⇒ Object



10
11
12
13
14
15
16
17
# File 'lib/citywrapper/resources/coverage.rb', line 10

def self.for_points(points = [])
  new.request(
    params: {
      points: points
    },
    method: :post
  )
end