Sha256: cad797466f9dee5a540edaf802786d29fee26198a11a6a5de8e7a7210f58ed1f

Contents?: true

Size: 279 Bytes

Versions: 2

Compression:

Stored size: 279 Bytes

Contents

# frozen_string_literal: true

module NovaposhtaApi
  module Resources
    class CityResource < Resource
      def all(params = {})
        response = post('Address/getCities', params)

        NovaposhtaApi::Models::City.extract_collection(response)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
novaposhta_api-0.1.7 lib/novaposhta_api/resources/city_resource.rb
novaposhta_api-0.1.5 lib/novaposhta_api/resources/city_resource.rb