lib/yao/resources/project.rb in yao-0.9.1 vs lib/yao/resources/project.rb in yao-0.10.0

- old
+ new

@@ -10,7 +10,20 @@ def domain? @data["is_domain"] end + def servers + @servers ||= Yao::Server.list(project_id: id) + end + + def ports + @ports ||= Yao::Port.list(tenant_id: id) + end + + class << self + def accessible + as_member { self.list } + end + end end end