class TransferTo::DSL
Public Instance Methods
check_status()
click to toggle source
check the status of the TranferTo API
# File lib/transfer_to/dsl.rb, line 5 def check_status self.ping reply.success? && reply.message == "pong" && reply.auth_key == request.key end
phone_search(number, operator_id = nil)
click to toggle source
get information about a phone number
# File lib/transfer_to/dsl.rb, line 11 def phone_search(number, operator_id = nil) information = msisdn_info(number, operator_id).information information[:product_list] = information[:product_list].split(",") information end