class BandwidthIris::City

Public Class Methods

list(client, query) click to toggle source
# 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