Sha256: 05f1ab598c2e9638fe240aa0b7f8fab48b550a4b429c1f0444c8c55b0f5fed91
Contents?: true
Size: 1.94 KB
Versions: 13
Compression:
Stored size: 1.94 KB
Contents
<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>get_carriers_for_country (Messaging)</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> </head> <body class="standalone-code"> <pre><span class="ruby-comment cmt"># File webservices/soap/messaging.rb, line 42</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_carriers_for_country</span>(<span class="ruby-identifier">country</span>) <span class="ruby-keyword kw">begin</span> <span class="ruby-identifier">res</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">driver</span>.<span class="ruby-identifier">getCarriersForCountry</span> <span class="ruby-identifier">:countryName</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">country</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">res</span>.<span class="ruby-identifier">carrierNames</span>.<span class="ruby-identifier">respond_to?</span> <span class="ruby-identifier">:string</span> <span class="ruby-identifier">res</span>.<span class="ruby-identifier">carrierNames</span>.<span class="ruby-identifier">string</span> <span class="ruby-keyword kw">else</span> <span class="ruby-keyword kw">nil</span> <span class="ruby-keyword kw">end</span> <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">SOAP</span><span class="ruby-operator">::</span><span class="ruby-constant">FaultError</span> <span class="ruby-keyword kw">false</span> <span class="ruby-keyword kw">end</span> <span class="ruby-keyword kw">end</span></pre> </body> </html>
Version data entries
13 entries across 13 versions & 1 rubygems