class Fog::Compute::ProfitBricks::Interfaces

Public Instance Methods

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