Class: Pvectl::Models::SyslogEntry
- 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
-
#n ⇒ Object
readonly
Returns the value of attribute n.
-
#t ⇒ Object
readonly
Returns the value of attribute t.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ SyslogEntry
constructor
A new instance of SyslogEntry.
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
#n ⇒ Object (readonly)
Returns the value of attribute n.
8 9 10 |
# File 'lib/pvectl/models/syslog_entry.rb', line 8 def n @n end |
#t ⇒ Object (readonly)
Returns the value of attribute t.
8 9 10 |
# File 'lib/pvectl/models/syslog_entry.rb', line 8 def t @t end |