Class: BandwidthIris::LnpChecker

Inherits:
Object
  • Object
show all
Extended by:
ClientWrapper
Defined in:
lib/bandwidth-iris/lnp_checker.rb

Class Method Summary collapse

Methods included from ClientWrapper

wrap_client_arg

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.(LNP_CHECKER_PATH)}?fullCheck=#{full_check}", data)[0]
end