Class: BandwidthIris::CoveredRateCenter

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

Class Method Summary collapse

Methods included from ClientWrapper

wrap_client_arg

Methods included from ApiItem

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

Class Method Details

.list(client, query = nil) ⇒ Object



7
8
9
10
11
12
13
14
# File 'lib/bandwidth-iris/covered_rate_center.rb', line 7

def self.list(client, query = nil)
  list = client.make_request(:get, COVERED_RATE_CENTER_PATH, query)[0][:covered_rate_center]
  return [] if !list
  list = if list.is_a?(Array) then list else [list] end
  list.map do |i|
    CoveredRateCenter.new(i, client)
  end
end