Method: Fog::Compute::IBM::Keys#get

Defined in:
lib/fog/ibm/models/compute/keys.rb

#get(key_id) ⇒ Object



16
17
18
19
20
21
22
# File 'lib/fog/ibm/models/compute/keys.rb', line 16

def get(key_id)
  begin
    new(service.get_key(key_id).body)
  rescue Fog::Compute::IBM::NotFound
    nil
  end
end