class Fog::Compute::ProfitBricks::Interfaces

Public Instance Methods

all() click to toggle source
# File lib/fog/compute/profit_bricks/models/interfaces.rb, line 9
def all
  load(service.get_all_nic.body["getAllNicResponse"])
end
get(id) click to toggle source
# File lib/fog/compute/profit_bricks/models/interfaces.rb, line 13
def get(id)
  interface = service.get_nic(id).body["getNicResponse"]
  Excon::Errors
  new(interface)
rescue Excon::Errors::NotFound
  nil
end