Class: Yao::Resources::LoadBalancerListener

Inherits:
Base
  • Object
show all
Defined in:
lib/yao/resources/loadbalancer_listener.rb

Instance Attribute Summary

Attributes included from RestfullyAccessible

#service

Instance Method Summary collapse

Methods inherited from Base

#[], #[]=, #created, friendly_attributes, #id, #initialize, map_attribute_to_attribute, map_attribute_to_resource, map_attribute_to_resources, #to_hash, #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

#default_poolObject Also known as: pool



18
19
20
21
22
# File 'lib/yao/resources/loadbalancer_listener.rb', line 18

def default_pool
  if default_pool_id = self["default_pool_id"]
    Yao::LoadBalancerPool.find default_pool_id
  end
end

#projectObject Also known as: tenant



11
12
13
14
15
# File 'lib/yao/resources/loadbalancer_listener.rb', line 11

def project
  if project_id = self["project_id"]
    Yao::Tenant.find project_id
  end
end