lib/yao/resources/security_group.rb in yao-0.13.4 vs lib/yao/resources/security_group.rb in yao-0.14.0
- old
+ new
@@ -3,9 +3,10 @@
class SecurityGroup < Base
include TenantAssociationable
friendly_attributes :name, :description
+ # @return [Array<Yao::Resources::SecurityGroupRule>]
def rules
self[["rules", SecurityGroupRule].join("__")] ||= (case self.class.service
when "compute"
self["rules"].map{|r| SecurityGroupRule.new(r) }
when "network"