Class: OracleCloud::IPAssociation

Inherits:
Asset
  • Object
show all
Defined in:
lib/oraclecloud/ip_association.rb

Instance Attribute Summary

Attributes inherited from Asset

#asset_data, #asset_type, #client, #container, #path

Instance Method Summary collapse

Methods inherited from Asset

#fetch, #full_name, #id, #initialize, #name_with_container, #strip_identity_domain, #validate!

Constructor Details

This class inherits a constructor from OracleCloud::Asset

Instance Method Details

#ip_addressObject



28
29
30
# File 'lib/oraclecloud/ip_association.rb', line 28

def ip_address
  asset_data['ip']
end

#local_initObject



20
21
22
# File 'lib/oraclecloud/ip_association.rb', line 20

def local_init
  @asset_type = 'ip/association'
end

#reservation_idObject



32
33
34
# File 'lib/oraclecloud/ip_association.rb', line 32

def reservation_id
  asset_data['reservation'].split('/').last
end

#vcable_idObject



24
25
26
# File 'lib/oraclecloud/ip_association.rb', line 24

def vcable_id
  asset_data['vcable']
end