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.16.7 lib/gillbus/get_cities.rb
gillbus-0.16.6 lib/gillbus/get_cities.rb
gillbus-0.16.5 lib/gillbus/get_cities.rb
gillbus-0.16.4 lib/gillbus/get_cities.rb
gillbus-0.16.3 lib/gillbus/get_cities.rb
gillbus-0.16.2 lib/gillbus/get_cities.rb
gillbus-0.16.1 lib/gillbus/get_cities.rb
gillbus-0.15.7 lib/gillbus/get_cities.rb
gillbus-0.15.6 lib/gillbus/get_cities.rb
gillbus-0.15.5 lib/gillbus/get_cities.rb
gillbus-0.15.4 lib/gillbus/get_cities.rb
gillbus-0.15.3 lib/gillbus/get_cities.rb
gillbus-0.15.2 lib/gillbus/get_cities.rb
gillbus-0.15.1 lib/gillbus/get_cities.rb
gillbus-0.15.0 lib/gillbus/get_cities.rb
gillbus-0.14.12 lib/gillbus/get_cities.rb
gillbus-0.14.11 lib/gillbus/get_cities.rb
gillbus-0.14.10 lib/gillbus/get_cities.rb
gillbus-0.14.9 lib/gillbus/get_cities.rb
gillbus-0.14.8 lib/gillbus/get_cities.rb