Class: Pvectl::Models::JournalEntry
- Defined in:
- lib/pvectl/models/journal_entry.rb
Overview
Represents a systemd journal line from GET /nodes/node/journal.
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 = {}) ⇒ JournalEntry
constructor
A new instance of JournalEntry.
Constructor Details
#initialize(attrs = {}) ⇒ JournalEntry
Returns a new instance of 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 ⇒ Object (readonly)
Returns the value of attribute n.
7 8 9 |
# File 'lib/pvectl/models/journal_entry.rb', line 7 def n @n end |
#t ⇒ Object (readonly)
Returns the value of attribute t.
7 8 9 |
# File 'lib/pvectl/models/journal_entry.rb', line 7 def t @t end |