Class: MPV::Event::LogMessage

Inherits:
MPV::Event show all
Defined in:
lib/mpvlib/event.rb

Instance Attribute Summary collapse

Attributes inherited from MPV::Event

#error, #event_id, #reply_id

Instance Method Summary collapse

Methods inherited from MPV::Event

new_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

#levelObject

Returns the value of attribute level.



112
113
114
# File 'lib/mpvlib/event.rb', line 112

def level
  @level
end

#log_levelObject

Returns the value of attribute log_level.



114
115
116
# File 'lib/mpvlib/event.rb', line 114

def log_level
  @log_level
end

#prefixObject

Returns the value of attribute prefix.



111
112
113
# File 'lib/mpvlib/event.rb', line 111

def prefix
  @prefix
end

#textObject

Returns the value of attribute text.



113
114
115
# File 'lib/mpvlib/event.rb', line 113

def text
  @text
end