lib/yao/resources/network.rb in yao-0.10.1 vs lib/yao/resources/network.rb in yao-0.11.0

- old
+ new

@@ -10,7 +10,11 @@ alias shared? shared self.service = "network" self.resource_name = "network" self.resources_name = "networks" + + def ports + @ports ||= Yao::Port.list(network_id: id) + end end end