Class: Pvectl::Models::JournalEntry

Inherits:
Base
  • Object
show all
Defined in:
lib/pvectl/models/journal_entry.rb

Overview

Represents a systemd journal line from GET /nodes/node/journal.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nObject (readonly)

Returns the value of attribute n.



7
8
9
# File 'lib/pvectl/models/journal_entry.rb', line 7

def n
  @n
end

#tObject (readonly)

Returns the value of attribute t.



7
8
9
# File 'lib/pvectl/models/journal_entry.rb', line 7

def t
  @t
end