Class: Opsmgr::Settings::Microbosh::JobList

Inherits:
Object
  • Object
show all
Defined in:
lib/opsmgr/settings/microbosh/job_list.rb

Instance Method Summary collapse

Constructor Details

#initialize(job_hashes) ⇒ JobList

Returns a new instance of JobList.



7
8
9
# File 'lib/opsmgr/settings/microbosh/job_list.rb', line 7

def initialize(job_hashes)
  @job_hashes = job_hashes
end

Instance Method Details

#findObject



11
12
13
14
15
# File 'lib/opsmgr/settings/microbosh/job_list.rb', line 11

def find
  @job_hashes.find do |job_hash|
    yield(Job.new(job_hash))
  end
end