class BandwidthIris::User

Public Class Methods

list(client) click to toggle source
# File lib/bandwidth-iris/user.rb, line 8
def self.list(client)
  list = client.make_request(:get, USER_PATH)[0][:users][:user]
  return [] if !list
  list = if list.is_a?(Array) then list else [list] end
  list.map do |i|
    User.new(i, client)
  end
end