Class: Kennel::ProjectsProvider

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

Defined Under Namespace

Classes: AutoloadFailed

Instance Method Summary collapse

Constructor Details

#initialize(filter:) ⇒ ProjectsProvider



7
8
9
# File 'lib/kennel/projects_provider.rb', line 7

def initialize(filter:)
  @filter = filter
end

Instance Method Details

#all_projectsArray<Models::Project>



14
15
16
17
# File 'lib/kennel/projects_provider.rb', line 14

def all_projects
  load_all
  loaded_projects.map(&:new)
end

#projectsArray<Models::Project>



22
23
24
25
# File 'lib/kennel/projects_provider.rb', line 22

def projects
  load_all
  loaded_projects.map(&:new)
end