Class: BandwidthIris::InServiceNumber

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

Class Method Summary collapse

Methods included from ClientWrapper

wrap_client_arg

Class Method Details

.get(client, number) ⇒ Object



13
14
15
# File 'lib/bandwidth-iris/in_service_number.rb', line 13

def self.get(client, number)
  client.make_request(:get, "#{client.(INSERVICE_NUMBER_PATH)}/#{CGI.escape(number)}")[0]
end

.list(client, query = nil) ⇒ Object



7
8
9
10
# File 'lib/bandwidth-iris/in_service_number.rb', line 7

def self.list(client, query = nil)
  list = client.make_request(:get, client.(INSERVICE_NUMBER_PATH), query)
  return list
end

.totals(client) ⇒ Object



18
19
20
# File 'lib/bandwidth-iris/in_service_number.rb', line 18

def self.totals(client)
  client.make_request(:get, "#{client.(INSERVICE_NUMBER_PATH)}/totals")[0]
end