Class: Pvectl::Models::SyslogEntry

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

Overview

Represents a syslog line from GET /nodes/node/syslog. Proxmox returns syslog entries as line_number, t: text.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attrs = {}) ⇒ SyslogEntry

Returns a new instance of SyslogEntry.



10
11
12
13
14
# File 'lib/pvectl/models/syslog_entry.rb', line 10

def initialize(attrs = {})
  super(attrs)
  @n = @attributes[:n]
  @t = @attributes[:t]
end

Instance Attribute Details

#nObject (readonly)

Returns the value of attribute n.



8
9
10
# File 'lib/pvectl/models/syslog_entry.rb', line 8

def n
  @n
end

#tObject (readonly)

Returns the value of attribute t.



8
9
10
# File 'lib/pvectl/models/syslog_entry.rb', line 8

def t
  @t
end