Class: Hula::BoshManifest::Job
- Inherits:
-
Object
- Object
- Hula::BoshManifest::Job
- Defined in:
- lib/hula/bosh_manifest/job.rb
Instance Method Summary collapse
-
#initialize(job_hash) ⇒ Job
constructor
A new instance of Job.
- #instances ⇒ Object
- #properties ⇒ Object
- #static_ips ⇒ Object
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
#instances ⇒ Object
26 27 28 |
# File 'lib/hula/bosh_manifest/job.rb', line 26 def instances @job_hash.fetch('instances') end |
#properties ⇒ Object
22 23 24 |
# File 'lib/hula/bosh_manifest/job.rb', line 22 def properties @job_hash.fetch('properties') end |
#static_ips ⇒ Object
18 19 20 |
# File 'lib/hula/bosh_manifest/job.rb', line 18 def static_ips first_network.fetch('static_ips') end |