Class: Pvectl::Models::TaskLogLine
- Defined in:
- lib/pvectl/models/task_log_line.rb,
sig/pvectl/models/task_log_line.rbs
Overview
Represents a single line from a task's log output. Returned by GET /nodes/node/tasks/upid/log.
Instance Attribute Summary collapse
-
#n ⇒ Integer?
readonly
Returns the value of attribute n.
-
#t ⇒ String?
readonly
Returns the value of attribute t.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ TaskLogLine
constructor
A new instance of TaskLogLine.
Constructor Details
#initialize(attrs = {}) ⇒ TaskLogLine
10 11 12 13 14 |
# File 'lib/pvectl/models/task_log_line.rb', line 10 def initialize(attrs = {}) super(attrs) @n = @attributes[:n] @t = @attributes[:t] end |
Instance Attribute Details
#n ⇒ Integer? (readonly)
Returns the value of attribute n.
8 9 10 |
# File 'lib/pvectl/models/task_log_line.rb', line 8 def n @n end |
#t ⇒ String? (readonly)
Returns the value of attribute t.
8 9 10 |
# File 'lib/pvectl/models/task_log_line.rb', line 8 def t @t end |