Class: Agent::Lock::Manager::Result
- Inherits:
-
Data
- Object
- Data
- Agent::Lock::Manager::Result
- Defined in:
- lib/agent/lock/manager.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#records ⇒ Object
readonly
Returns the value of attribute records.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#code ⇒ Integer
What the process should exit with.
-
#record ⇒ Record?
The one record most results are about.
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message
19 20 21 |
# File 'lib/agent/lock/manager.rb', line 19 def end |
#records ⇒ Object (readonly)
Returns the value of attribute records
19 20 21 |
# File 'lib/agent/lock/manager.rb', line 19 def records @records end |
#status ⇒ Object (readonly)
Returns the value of attribute status
19 20 21 |
# File 'lib/agent/lock/manager.rb', line 19 def status @status end |
Instance Method Details
#code ⇒ Integer
Returns what the process should exit with.
21 |
# File 'lib/agent/lock/manager.rb', line 21 def code = i[held refused not_found interrupted parent_scope].include?(status) ? 1 : 0 |
#record ⇒ Record?
Returns the one record most results are about.
24 |
# File 'lib/agent/lock/manager.rb', line 24 def record = records.first |