Methods

Class/Module Index [+]

Quicksearch

Fog::Compute::IBM::Vlans

Public Instance Methods

all() click to toggle source
# File lib/fog/ibm/models/compute/vlans.rb, line 12
def all
  load(service.list_vlans.body['vlan'])
end
get(vlan_id) click to toggle source
# File lib/fog/ibm/models/compute/vlans.rb, line 16
def get(vlan_id)
  begin
    vlan = service.list_vlans.body
    new(vlan['vlan'].find{|vlan| vlan['id'] == vlan_id.to_s })
  rescue Fog::Compute::IBM::NotFound
    nil
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.