Classes: Slice
7 8 9 10 11 12 13 14 15 16 17 18 19 20
# File 'lib/slicehost_support.rb', line 7 def slicehost_get_ips(api_key) Slice.site = api_key slices = Slice.find(:all) ips = [] for slice in slices for address in slice.addresses ips << address end end ips end