lib/yao/resources/project.rb in yao-0.14.0 vs lib/yao/resources/project.rb in yao-0.15.0
- old
+ new
@@ -23,9 +23,14 @@
# @return [Yao::Resources::Port]
def ports
@ports ||= Yao::Port.list(tenant_id: id)
end
+ # @return [Yao::Resources::RoleAssignment]
+ def role_assignment
+ Yao::RoleAssignment.get(project: id)
+ end
+
class << self
def accessible
as_member { self.list }
end