lib/yao/resources/loadbalancer_pool.rb in yao-0.3.6 vs lib/yao/resources/loadbalancer_pool.rb in yao-0.3.7
- old
+ new
@@ -1,23 +1,14 @@
-require 'date'
module Yao::Resources
class LoadBalancerPool < Base
friendly_attributes :lb_algorithm, :protocol, :description,
:admin_state_up, :provisioning_status,
:session_persistence, :operating_status, :name,
def loadbalancers
self["loadbalancers"].map do |loadbalancer|
Yao::LoadBalancer.find loadbalancer["id"]
end
- end
-
- def created_at
- Date.parse(self["created_at"])
- end
-
- def updated_at
- Date.parse(self["updated_at"])
end
def listeners
self["listeners"].map do |listener|
Yao::LoadBalancerListener.find listener["id"]