Sha256: 442b4cf2bdcaec9b2d6ca28f5ffe50b59da79ce95e7b1a22b0c7bac25c911745

Contents?: true

Size: 1.44 KB

Versions: 2

Compression:

Stored size: 1.44 KB

Contents

#
# Autogenerated by Thrift Compiler (0.9.1)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#

require 'thrift'

module Geong
  module Geocoder
    class Location
      include ::Thrift::Struct, ::Thrift::Struct_Union
      LATITUDE = 1
      LONGITUDE = 2

      FIELDS = {
        LATITUDE => {:type => ::Thrift::Types::DOUBLE, :name => 'latitude'},
        LONGITUDE => {:type => ::Thrift::Types::DOUBLE, :name => 'longitude'}
      }

      def struct_fields; FIELDS; end

      def validate
      end

      ::Thrift::Struct.generate_accessors self
    end

    class NoResultException < ::Thrift::Exception
      include ::Thrift::Struct, ::Thrift::Struct_Union
      def initialize(message=nil)
        super()
        self.message = message
      end

      MESSAGE = 1

      FIELDS = {
        MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'}
      }

      def struct_fields; FIELDS; end

      def validate
      end

      ::Thrift::Struct.generate_accessors self
    end

    class TimeoutException < ::Thrift::Exception
      include ::Thrift::Struct, ::Thrift::Struct_Union
      def initialize(message=nil)
        super()
        self.message = message
      end

      MESSAGE = 1

      FIELDS = {
        MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'}
      }

      def struct_fields; FIELDS; end

      def validate
      end

      ::Thrift::Struct.generate_accessors self
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
geong-0.0.2 generated/geong/geocoder/geocoder_types.rb
geong-0.0.1 generated/geong/geocoder/geocoder_types.rb