Class: Citywrapper::SinglePointCoverage

Inherits:
ApiBase
  • Object
show all
Defined in:
lib/citywrapper/resources/single_point_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

#initializeSinglePointCoverage

Returns a new instance of SinglePointCoverage.



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

def initialize
  super
  @resource = 'singlepointcoverage'
end

Class Method Details

.at(coordinates: []) ⇒ Object



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

def self.at(coordinates: [])
  new.request(
    params: {
      coord: coordinates.join(',')
    }
  )
end