Class: Pvectl::Models::TaskLogLine
- Defined in:
- lib/pvectl/models/task_log_line.rb
Overview
Represents a single line from a task’s log output. Returned by GET /nodes/node/tasks/upid/log.
Instance Attribute Summary collapse
-
#n ⇒ Object
readonly
Returns the value of attribute n.
-
#t ⇒ Object
readonly
Returns the value of attribute t.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ TaskLogLine
constructor
A new instance of TaskLogLine.
Constructor Details
#initialize(attrs = {}) ⇒ TaskLogLine
Returns a new instance of 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 ⇒ Object (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 ⇒ Object (readonly)
Returns the value of attribute t.
8 9 10 |
# File 'lib/pvectl/models/task_log_line.rb', line 8 def t @t end |