Class: Kennel::ProjectsProvider

Inherits:
Object
  • Object
show all
Defined in:
lib/kennel/projects_provider.rb

Defined Under Namespace

Classes: AutoloadFailed

Instance Method Summary collapse

Instance Method Details

#all_projectsArray<Models::Project>

Returns All projects in the system. This is a slow operation. Use ‘projects` to get all projects in the system.

Returns:

  • (Array<Models::Project>)

    All projects in the system. This is a slow operation. Use ‘projects` to get all projects in the system.



10
11
12
13
# File 'lib/kennel/projects_provider.rb', line 10

def all_projects
  load_all
  Models::Project.recursive_subclasses.map(&:new)
end

#projectsArray<Models::Project>

Returns All projects in the system. This is a slow operation.

Returns:

  • (Array<Models::Project>)

    All projects in the system. This is a slow operation.



18
19
20
21
# File 'lib/kennel/projects_provider.rb', line 18

def projects
  load_all
  Models::Project.recursive_subclasses.map(&:new)
end