Sha256: 794556198119e11e00c76c4c8d2bc731689ba1fd64b146781d6598a150af83e7
Contents?: true
Size: 438 Bytes
Versions: 1
Compression:
Stored size: 438 Bytes
Contents
class ZipCodeService include SoapObject wsdl 'http://www.webservicex.net/uszip.asmx?WSDL' log_level :error def get_zip_code_info(zip_code) get_info_by_zip 'USZip' => zip_code end def state message[:state] end def city message[:city] end def area_code message[:area_code] end private def message body[:get_info_by_zip_response][:get_info_by_zip_result][:new_data_set][:table] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
soap-object-0.6.8 | features/support/services/zip_code_service.rb |