Class: Yao::Resources::FloatingIP
- Includes:
- PortAssociationable, TenantAssociationable
- Defined in:
- lib/yao/resources/floating_ip.rb
Instance Attribute Summary
Attributes included from RestfullyAccessible
Instance Method Summary collapse
- #project ⇒ Object (also: #tenant)
- #router ⇒ Object
Methods included from TenantAssociationable
Methods included from PortAssociationable
Methods inherited from Base
#[], #[]=, #created, friendly_attributes, #id, #initialize, map_attribute_to_attribute, map_attribute_to_resource, map_attribute_to_resources, #updated
Methods included from RestfullyAccessible
#admin=, #api_version, #api_version=, #as_member, #client, #create, #destroy, extended, #find_by_name, #get, #get!, #list, #resources_path, #resources_path=, #return_single_on_querying, #return_single_on_querying=, #update
Constructor Details
This class inherits a constructor from Yao::Resources::Base
Instance Method Details
#project ⇒ Object Also known as: tenant
21 22 23 |
# File 'lib/yao/resources/floating_ip.rb', line 21 def project @project ||= Yao::Tenant.get(project_id) end |
#router ⇒ Object
17 18 19 |
# File 'lib/yao/resources/floating_ip.rb', line 17 def router @router ||= Yao::Router.get(router_id) end |