Class: Utils::ProbeServer::Job
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(probe_server, args) ⇒ Job
constructor
A new instance of Job.
- #inspect ⇒ Object
Constructor Details
#initialize(probe_server, args) ⇒ Job
Returns a new instance of Job.
10 11 12 13 |
# File 'lib/utils/probe_server.rb', line 10 def initialize(probe_server, args) @id = probe_server.next_job_id @args = args end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
17 18 19 |
# File 'lib/utils/probe_server.rb', line 17 def args @args end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
15 16 17 |
# File 'lib/utils/probe_server.rb', line 15 def id @id end |
Instance Method Details
#inspect ⇒ Object
19 20 21 |
# File 'lib/utils/probe_server.rb', line 19 def inspect "#<#{self.class}: id=#{id} args=#{args.inspect}>" end |