Sha256: 3158bec1c8d05aba767d8f5ea147fc53ea48699b55bb501f0fd04c25dfad8773

Contents?: true

Size: 1003 Bytes

Versions: 46

Compression:

Stored size: 1003 Bytes

Contents

class Gillbus
  module GetAllCities
    Gillbus.register self, :get_all_cities

    class Request < BaseRequest
      def path; '/online2/getAllCities' end

      # completeListSities (не обязательный, по умолчанию false)
      # Признак получения полного списка населённых пунктов.
      # Если установлен в true, будет возвращён полный список НП
      # (за исключением ограничений на уровне консолидатора).
      attr_accessor :complete_list_cities

      def params
        compact(
          completeListSities: bool(complete_list_cities),
        )
      end
    end

    class City
      extend Fields
      include UpdateAttrs
      field :id
      field :name
      field :country_id
      field :country_name
      field :name_full
    end

    class Response < BaseResponse
      field :cities, [City], key: 'CITY'
    end
  end
end

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
gillbus-0.23.0 lib/gillbus/get_all_cities.rb
gillbus-0.22.9 lib/gillbus/get_all_cities.rb
gillbus-0.22.8 lib/gillbus/get_all_cities.rb
gillbus-0.22.7 lib/gillbus/get_all_cities.rb
gillbus-0.22.6 lib/gillbus/get_all_cities.rb
gillbus-0.22.5 lib/gillbus/get_all_cities.rb
gillbus-0.22.4 lib/gillbus/get_all_cities.rb
gillbus-0.22.3 lib/gillbus/get_all_cities.rb
gillbus-0.22.2 lib/gillbus/get_all_cities.rb
gillbus-0.22.1 lib/gillbus/get_all_cities.rb
gillbus-0.22.0 lib/gillbus/get_all_cities.rb
gillbus-0.21.0 lib/gillbus/get_all_cities.rb
gillbus-0.20.9 lib/gillbus/get_all_cities.rb
gillbus-0.20.8 lib/gillbus/get_all_cities.rb
gillbus-0.20.7 lib/gillbus/get_all_cities.rb
gillbus-0.20.6 lib/gillbus/get_all_cities.rb
gillbus-0.20.5 lib/gillbus/get_all_cities.rb
gillbus-0.20.4 lib/gillbus/get_all_cities.rb
gillbus-0.20.3 lib/gillbus/get_all_cities.rb
gillbus-0.20.2 lib/gillbus/get_all_cities.rb