Sha256: 748756d1f093684f66ed56554dde28ae0304e92e5ee77351307b95730db1af10
Contents?: true
Size: 596 Bytes
Versions: 1
Compression:
Stored size: 596 Bytes
Contents
module Yao::Resources class Project < Base friendly_attributes :id, :name, :description, :enabled, :parent_id, :domain_id alias :enabled? :enabled self.service = "identity" self.resource_name = "project" self.resources_name = "projects" self.admin = true 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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
yao-0.10.0 | lib/yao/resources/project.rb |