Class: Pvectl::Models::JournalEntry
- Defined in:
- lib/pvectl/models/journal_entry.rb,
sig/pvectl/models/journal_entry.rbs
Overview
Represents a systemd journal line from GET /nodes/node/journal.
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 = {}) ⇒ JournalEntry
constructor
A new instance of JournalEntry.
Constructor Details
#initialize(attrs = {}) ⇒ JournalEntry
9 10 11 12 13 |
# File 'lib/pvectl/models/journal_entry.rb', line 9 def initialize(attrs = {}) super(attrs) @n = @attributes[:n] @t = @attributes[:t] end |
Instance Attribute Details
#n ⇒ Integer? (readonly)
Returns the value of attribute n.
7 8 9 |
# File 'lib/pvectl/models/journal_entry.rb', line 7 def n @n end |
#t ⇒ String? (readonly)
Returns the value of attribute t.
7 8 9 |
# File 'lib/pvectl/models/journal_entry.rb', line 7 def t @t end |