Class: MPV::Event::ClientMessage
- Inherits:
-
MPV::Event
- Object
- MPV::Event
- MPV::Event::ClientMessage
- Defined in:
- lib/mpvlib/event.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
Returns the value of attribute args.
Attributes inherited from MPV::Event
Instance Method Summary collapse
-
#initialize(mpv_event) ⇒ ClientMessage
constructor
A new instance of ClientMessage.
Methods inherited from MPV::Event
Constructor Details
#initialize(mpv_event) ⇒ ClientMessage
Returns a new instance of ClientMessage.
181 182 183 184 185 |
# File 'lib/mpvlib/event.rb', line 181 def initialize(mpv_event) super data = MPVEventLogMessage.new(mpv_event[:data]) @args = data[:args].read_array_of_strings(data[:num_args]) end |
Instance Attribute Details
#args ⇒ Object
Returns the value of attribute args.
179 180 181 |
# File 'lib/mpvlib/event.rb', line 179 def args @args end |