Class: Yao::Resources::LoadBalancerListener
- Defined in:
- lib/yao/resources/loadbalancer_listener.rb
Instance Attribute Summary
Attributes included from RestfullyAccessible
Instance Method Summary collapse
- #default_pool ⇒ Yao::Resources::LoadBalancerPool (also: #pool)
- #project ⇒ Yao::Resources::Tenant (also: #tenant)
Methods inherited from Base
#[], #[]=, add_instantiation_name_list, #destroy, friendly_attributes, #id, #initialize, instantiation?, map_attribute_to_attribute, map_attribute_to_resource, map_attribute_to_resources, map_attributes_to_time, #to_hash, #update
Methods included from RestfullyAccessible
#admin=, #api_version, #api_version=, #as_member, #client, #create, #destroy, extended, #find_by_name, #find_next_link, #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
#default_pool ⇒ Yao::Resources::LoadBalancerPool Also known as: pool
24 25 26 27 28 |
# File 'lib/yao/resources/loadbalancer_listener.rb', line 24 def default_pool if default_pool_id = self["default_pool_id"] Yao::LoadBalancerPool.find default_pool_id end end |
#project ⇒ Yao::Resources::Tenant Also known as: tenant
16 17 18 19 20 |
# File 'lib/yao/resources/loadbalancer_listener.rb', line 16 def project if project_id = self["project_id"] Yao::Tenant.find project_id end end |