Class: Arcp::Job::EventBody::Delegate
- Inherits:
-
Data
- Object
- Data
- Arcp::Job::EventBody::Delegate
- Defined in:
- lib/arcp/job/event_body/delegate.rb
Instance Attribute Summary collapse
-
#agent ⇒ Object
readonly
Returns the value of attribute agent.
-
#child_job_id ⇒ Object
readonly
Returns the value of attribute child_job_id.
-
#lease ⇒ Object
readonly
Returns the value of attribute lease.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#agent ⇒ Object (readonly)
Returns the value of attribute agent
6 7 8 |
# File 'lib/arcp/job/event_body/delegate.rb', line 6 def agent @agent end |
#child_job_id ⇒ Object (readonly)
Returns the value of attribute child_job_id
6 7 8 |
# File 'lib/arcp/job/event_body/delegate.rb', line 6 def child_job_id @child_job_id end |
#lease ⇒ Object (readonly)
Returns the value of attribute lease
6 7 8 |
# File 'lib/arcp/job/event_body/delegate.rb', line 6 def lease @lease end |
Class Method Details
Instance Method Details
#to_h ⇒ Object
16 17 18 19 20 |
# File 'lib/arcp/job/event_body/delegate.rb', line 16 def to_h out = { 'child_job_id' => child_job_id, 'agent' => agent } out['lease'] = lease.to_h if lease out end |