class BandwidthIris::LnpChecker

Public Class Methods

check(client, numbers, full_check = false) click to toggle source
# File lib/bandwidth-iris/lnp_checker.rb, line 7
def self.check(client, numbers, full_check = false)
  list = if numbers.is_a?(Array) then numbers else [numbers] end
  data = {
    :number_portability_request => {
      :tn_list => {:tn => list}
    }
  }
  client.make_request(:post, "#{client.concat_account_path(LNP_CHECKER_PATH)}?fullCheck=#{full_check}", data)[0]
end