JoeSouthan/citywrapper

View on GitHub
lib/citywrapper/resources/single_point_coverage.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true

module Citywrapper
  class SinglePointCoverage < ApiBase
    def initialize
      super
      @resource = 'singlepointcoverage'
    end

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