Class: Yao::Resources::LoadBalancerHealthMonitor
- Defined in:
- lib/yao/resources/loadbalancer_healthmonitor.rb
Instance Attribute Summary
Attributes included from RestfullyAccessible
Instance Method Summary collapse
- #created_at ⇒ Object
- #project ⇒ Object (also: #tenant)
- #updated_at ⇒ Object
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
#created_at ⇒ Object
10 11 12 |
# File 'lib/yao/resources/loadbalancer_healthmonitor.rb', line 10 def created_at Date.parse(self["created_at"]) end |
#project ⇒ Object Also known as: tenant
18 19 20 21 22 |
# File 'lib/yao/resources/loadbalancer_healthmonitor.rb', line 18 def project if project_id = self["project_id"] Yao::Tenant.find project_id end end |
#updated_at ⇒ Object
14 15 16 |
# File 'lib/yao/resources/loadbalancer_healthmonitor.rb', line 14 def updated_at Date.parse(self["updated_at"]) end |