Class: MPV::Event::LogMessage
- Inherits:
-
MPV::Event
- Object
- MPV::Event
- MPV::Event::LogMessage
- Defined in:
- lib/mpvlib/event.rb
Instance Attribute Summary collapse
-
#level ⇒ Object
Returns the value of attribute level.
-
#log_level ⇒ Object
Returns the value of attribute log_level.
-
#prefix ⇒ Object
Returns the value of attribute prefix.
-
#text ⇒ Object
Returns the value of attribute text.
Attributes inherited from MPV::Event
Instance Method Summary collapse
-
#initialize(mpv_event) ⇒ LogMessage
constructor
A new instance of LogMessage.
Methods inherited from MPV::Event
Constructor Details
#initialize(mpv_event) ⇒ LogMessage
Returns a new instance of LogMessage.
116 117 118 119 120 121 122 123 |
# File 'lib/mpvlib/event.rb', line 116 def initialize(mpv_event) super data = MPVEventLogMessage.new(mpv_event[:data]) @prefix = data[:prefix] @level = data[:level] @text = data[:text] @log_level = data[:log_level] end |
Instance Attribute Details
#level ⇒ Object
Returns the value of attribute level.
112 113 114 |
# File 'lib/mpvlib/event.rb', line 112 def level @level end |
#log_level ⇒ Object
Returns the value of attribute log_level.
114 115 116 |
# File 'lib/mpvlib/event.rb', line 114 def log_level @log_level end |
#prefix ⇒ Object
Returns the value of attribute prefix.
111 112 113 |
# File 'lib/mpvlib/event.rb', line 111 def prefix @prefix end |
#text ⇒ Object
Returns the value of attribute text.
113 114 115 |
# File 'lib/mpvlib/event.rb', line 113 def text @text end |