Class: Geocoder::Processor

Inherits:
Object
  • Object
show all
Includes:
Thrift::Processor
Defined in:
lib/thrift/geocoder.rb

Instance Method Summary collapse

Instance Method Details

#process_bulkReverseGeocode(seqid, iprot, oprot) ⇒ Object



120
121
122
123
124
125
# File 'lib/thrift/geocoder.rb', line 120

def process_bulkReverseGeocode(seqid, iprot, oprot)
  args = read_args(iprot, BulkReverseGeocode_args)
  result = BulkReverseGeocode_result.new()
  result.success = @handler.bulkReverseGeocode(args.r)
  write_result(result, oprot, 'bulkReverseGeocode', seqid)
end

#process_bulkSlugLookup(seqid, iprot, oprot) ⇒ Object



127
128
129
130
131
132
# File 'lib/thrift/geocoder.rb', line 127

def process_bulkSlugLookup(seqid, iprot, oprot)
  args = read_args(iprot, BulkSlugLookup_args)
  result = BulkSlugLookup_result.new()
  result.success = @handler.bulkSlugLookup(args.r)
  write_result(result, oprot, 'bulkSlugLookup', seqid)
end

#process_geocode(seqid, iprot, oprot) ⇒ Object



106
107
108
109
110
111
# File 'lib/thrift/geocoder.rb', line 106

def process_geocode(seqid, iprot, oprot)
  args = read_args(iprot, Geocode_args)
  result = Geocode_result.new()
  result.success = @handler.geocode(args.r)
  write_result(result, oprot, 'geocode', seqid)
end

#process_getS2CellInfos(seqid, iprot, oprot) ⇒ Object



141
142
143
144
145
146
# File 'lib/thrift/geocoder.rb', line 141

def process_getS2CellInfos(seqid, iprot, oprot)
  args = read_args(iprot, GetS2CellInfos_args)
  result = GetS2CellInfos_result.new()
  result.success = @handler.getS2CellInfos(args.r)
  write_result(result, oprot, 'getS2CellInfos', seqid)
end

#process_refreshStore(seqid, iprot, oprot) ⇒ Object



134
135
136
137
138
139
# File 'lib/thrift/geocoder.rb', line 134

def process_refreshStore(seqid, iprot, oprot)
  args = read_args(iprot, RefreshStore_args)
  result = RefreshStore_result.new()
  result.success = @handler.refreshStore(args.r)
  write_result(result, oprot, 'refreshStore', seqid)
end

#process_reverseGeocode(seqid, iprot, oprot) ⇒ Object



113
114
115
116
117
118
# File 'lib/thrift/geocoder.rb', line 113

def process_reverseGeocode(seqid, iprot, oprot)
  args = read_args(iprot, ReverseGeocode_args)
  result = ReverseGeocode_result.new()
  result.success = @handler.reverseGeocode(args.r)
  write_result(result, oprot, 'reverseGeocode', seqid)
end