Class: Nomad::JobSummary
Constant Summary
Constants inherited from Response
Instance Attribute Summary collapse
-
#children ⇒ Children
readonly
The job children.
-
#create_index ⇒ Integer
readonly
The job summary create_index.
-
#job_id ⇒ String
readonly
The job job_id.
-
#modify_index ⇒ Integer
readonly
The job summary modify_index.
-
#summary ⇒ Hash<String, Object>
readonly
The job summary.
Method Summary
Methods inherited from Response
#==, decode, #initialize, #to_h
Constructor Details
This class inherits a constructor from Nomad::Response
Instance Attribute Details
#children ⇒ Children (readonly)
The job children.
153 |
# File 'lib/nomad/api/job.rb', line 153 field :Children, as: :children, load: ->(item) { JobChildren.decode(item) } |
#create_index ⇒ Integer (readonly)
The job summary create_index.
158 |
# File 'lib/nomad/api/job.rb', line 158 field :CreateIndex, as: :create_index |
#job_id ⇒ String (readonly)
The job job_id.
138 |
# File 'lib/nomad/api/job.rb', line 138 field :JobID, as: :job_id, load: :string_as_nil |
#modify_index ⇒ Integer (readonly)
The job summary modify_index.
163 |
# File 'lib/nomad/api/job.rb', line 163 field :ModifyIndex, as: :modify_index |
#summary ⇒ Hash<String, Object> (readonly)
The job summary.
143 144 145 146 147 148 |
# File 'lib/nomad/api/job.rb', line 143 field :Summary, as: :summary, load: ->(item) { (item || {}).inject({}) do |h,(k,v)| h[k.to_s] = JobTaskGroupSummary.decode(v) h end } |