Sha256: d2011cb15d5629150a637cbe6166a439b021cc4302b2907268215aa218cc8825

Contents?: true

Size: 528 Bytes

Versions: 31

Compression:

Stored size: 528 Bytes

Contents

class Gillbus
  module GetCities

    Gillbus.register self, :get_cities

    class Request < BaseRequest

      def path; '/online2/getCities' end

      attr_accessor :start_city_id

      def params
        {
          startCityId: start_city_id,
        }
      end

    end

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

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

  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
gillbus-0.14.7 lib/gillbus/get_cities.rb
gillbus-0.14.6 lib/gillbus/get_cities.rb
gillbus-0.14.5 lib/gillbus/get_cities.rb
gillbus-0.14.4 lib/gillbus/get_cities.rb
gillbus-0.14.3 lib/gillbus/get_cities.rb
gillbus-0.14.2 lib/gillbus/get_cities.rb
gillbus-0.14.1 lib/gillbus/get_cities.rb
gillbus-0.14.0 lib/gillbus/get_cities.rb
gillbus-0.13.0 lib/gillbus/get_cities.rb
gillbus-0.12.0 lib/gillbus/get_cities.rb
gillbus-0.11.0 lib/gillbus/get_cities.rb