Class: BandwidthIris::LnpChecker
- Inherits:
-
Object
- Object
- BandwidthIris::LnpChecker
- Extended by:
- ClientWrapper
- Defined in:
- lib/bandwidth-iris/lnp_checker.rb
Class Method Summary collapse
Methods included from ClientWrapper
Class Method Details
.check(client, numbers, full_check = false) ⇒ Object
7 8 9 10 11 12 13 14 15 |
# 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 |