Class: BandwidthIris::DiscNumber

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

Class Method Summary collapse

Methods included from ClientWrapper

wrap_client_arg

Methods included from ApiItem

#[], #[]=, #initialize, #to_data

Class Method Details

.list(client) ⇒ Object



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

def self.list(client)
  client.make_request(:get, client.(DISC_NUMBER_PATH))[0][:telephone_numbers]
end

.totals(client) ⇒ Object



14
15
16
# File 'lib/bandwidth-iris/disc_number.rb', line 14

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