Method: Fog::Terremark::Shared::Addresses#get
- Defined in:
- lib/fog/terremark/models/shared/addresses.rb
#get(ip_id) ⇒ Object
25 26 27 28 29 30 31 32 33 |
# File 'lib/fog/terremark/models/shared/addresses.rb', line 25 def get(ip_id) if ip_id && ip = connection.get_public_ip(ip_id).body new(ip) elsif !ip_id nil end rescue Excon::Errors::Forbidden nil end |