Class: Pvectl::Models::SyslogEntry
- Defined in:
- lib/pvectl/models/syslog_entry.rb,
sig/pvectl/models/syslog_entry.rbs
Overview
Represents a syslog line from GET /nodes/node/syslog. Proxmox returns syslog entries as line_number, t: text.
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 = {}) ⇒ SyslogEntry
constructor
A new instance of SyslogEntry.
Constructor Details
#initialize(attrs = {}) ⇒ 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
#n ⇒ Integer? (readonly)
Returns the value of attribute n.
8 9 10 |
# File 'lib/pvectl/models/syslog_entry.rb', line 8 def n @n end |
#t ⇒ String? (readonly)
Returns the value of attribute t.
8 9 10 |
# File 'lib/pvectl/models/syslog_entry.rb', line 8 def t @t end |