Class: Idcf::Ilb::Resources::Job

Inherits:
Base
  • Object
show all
Defined in:
lib/idcf/ilb/resources/job.rb

Overview

Job resource class

Instance Attribute Summary

Attributes inherited from Base

#client

Instance Method Summary collapse

Methods inherited from Base

class_name, generate_readers, inherited, #initialize, #inspect, validator_class

Constructor Details

This class inherits a constructor from Idcf::Ilb::Resources::Base

Instance Method Details

#refreshJob

Refresh this job

Returns:

  • (Job)

    self object



9
10
11
12
# File 'lib/idcf/ilb/resources/job.rb', line 9

def refresh
  self.attributes = client.get_job(id).body
  self
end