Class: Fog::Compute::Fifo::Ipranges

Inherits:
Fog::Collection
  • Object
show all
Defined in:
lib/fog/fifo/models/compute/ipranges.rb

Instance Method Summary collapse

Instance Method Details

#allObject



9
10
11
# File 'lib/fog/fifo/models/compute/ipranges.rb', line 9

def all
  service.list_ipranges().body.map{|id| get(id) }
end

#get(id) ⇒ Object



13
14
15
16
# File 'lib/fog/fifo/models/compute/ipranges.rb', line 13

def get(id)
  data = service.get_iprange(id).body
  new(data)
end