Class: Hula::BoshManifest::Job

Inherits:
Object
  • Object
show all
Defined in:
lib/hula/bosh_manifest/job.rb

Instance Method Summary collapse

Constructor Details

#initialize(job_hash) ⇒ Job

Returns a new instance of Job.



14
15
16
# File 'lib/hula/bosh_manifest/job.rb', line 14

def initialize(job_hash)
  @job_hash = job_hash
end

Instance Method Details

#instancesObject



26
27
28
# File 'lib/hula/bosh_manifest/job.rb', line 26

def instances
  @job_hash.fetch('instances')
end

#propertiesObject



22
23
24
# File 'lib/hula/bosh_manifest/job.rb', line 22

def properties
  @job_hash.fetch('properties')
end

#static_ipsObject



18
19
20
# File 'lib/hula/bosh_manifest/job.rb', line 18

def static_ips
  first_network.fetch('static_ips')
end