Class: Yao::Resources::Project
- Inherits:
-
Base
- Object
- Base
- Yao::Resources::Project
show all
- Defined in:
- lib/yao/resources/project.rb
Instance Attribute Summary
#service
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Base
#[], #[]=, #created, friendly_attributes, #id, #initialize, map_attribute_to_attribute, map_attribute_to_resource, map_attribute_to_resources, #to_hash, #updated
#admin=, #api_version, #api_version=, #as_member, #client, #create, #destroy, extended, #find_by_name, #get, #get!, #list, #resources_path, #resources_path=, #return_single_on_querying, #return_single_on_querying=, #update
Class Method Details
.accessible ⇒ Object
24
25
26
|
# File 'lib/yao/resources/project.rb', line 24
def accessible
as_member { self.list }
end
|
Instance Method Details
#domain? ⇒ Boolean
11
12
13
|
# File 'lib/yao/resources/project.rb', line 11
def domain?
@data["is_domain"]
end
|
#ports ⇒ Object
19
20
21
|
# File 'lib/yao/resources/project.rb', line 19
def ports
@ports ||= Yao::Port.list(tenant_id: id)
end
|
#servers ⇒ Object
15
16
17
|
# File 'lib/yao/resources/project.rb', line 15
def servers
@servers ||= Yao::Server.list(all_tenants: 1, project_id: id)
end
|