class SauceWhisk::Tunnels

def self.all(opts = {:fetch_each => true})

def self.all(opts = {:fetch_each => true})
  all_tunnels = JSON.parse get
  fetch_each = opts[:fetch_each]
  unless fetch_each
    return all_tunnels
  end
  tunnels = all_tunnels.map do |tunnel|
    fetch tunnel
  end
  return tunnels
end