Class: Eztexting::Lookup

Inherits:
Base
  • Object
show all
Defined in:
lib/eztexting/lookup.rb

Class Method Summary collapse

Methods inherited from Base

do_post, process, processed_reponse

Class Method Details

.carrier(phone_number) ⇒ Array

Lookup the carrier for a telephone mobile number



7
8
9
10
11
12
13
14
15
# File 'lib/eztexting/lookup.rb', line 7

def self.carrier(phone_number)
  location = "/lookup"
  options  = {:phonenumber => phone_number}  
  
  response = self.do_post(location,options)
  response_result = self.process(response)
  
  return self.processed_reponse(response_result,response)
end