Class: BandwidthIris::City

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

Class Method Summary collapse

Methods included from ClientWrapper

wrap_client_arg

Class Method Details

.list(client, query) ⇒ Object



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

def self.list(client, query)
  list = client.make_request(:get, CITY_PATH, query)[0][:cities][:city]
  return [] if !list
  if list.is_a?(Array) then list else [list] end
end