Sha256: 8fe35f6768143a01c167386f9813642e4865bddd52af6dd973fe68d7eb93d754

Contents?: true

Size: 1005 Bytes

Versions: 16

Compression:

Stored size: 1005 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

16 entries across 16 versions & 1 rubygems

Version Path
gillbus-0.16.7 lib/gillbus/get_all_cities.rb
gillbus-0.16.6 lib/gillbus/get_all_cities.rb
gillbus-0.16.5 lib/gillbus/get_all_cities.rb
gillbus-0.16.4 lib/gillbus/get_all_cities.rb
gillbus-0.16.3 lib/gillbus/get_all_cities.rb
gillbus-0.16.2 lib/gillbus/get_all_cities.rb
gillbus-0.16.1 lib/gillbus/get_all_cities.rb
gillbus-0.15.7 lib/gillbus/get_all_cities.rb
gillbus-0.15.6 lib/gillbus/get_all_cities.rb
gillbus-0.15.5 lib/gillbus/get_all_cities.rb
gillbus-0.15.4 lib/gillbus/get_all_cities.rb
gillbus-0.15.3 lib/gillbus/get_all_cities.rb
gillbus-0.15.2 lib/gillbus/get_all_cities.rb
gillbus-0.15.1 lib/gillbus/get_all_cities.rb
gillbus-0.15.0 lib/gillbus/get_all_cities.rb
gillbus-0.14.12 lib/gillbus/get_all_cities.rb