Class: MPV::Event::GetPropertyReply

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

Direct Known Subclasses

PropertyChange

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) ⇒ GetPropertyReply

Returns a new instance of GetPropertyReply.



132
133
134
135
136
137
# File 'lib/mpvlib/event.rb', line 132

def initialize(mpv_event)
  super
  data = MPVEventProperty.new(mpv_event[:data])
  @name = data[:name]
  @value = MPV.convert_data(data[:data], data[:format])
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



129
130
131
# File 'lib/mpvlib/event.rb', line 129

def name
  @name
end

#valueObject

Returns the value of attribute value.



130
131
132
# File 'lib/mpvlib/event.rb', line 130

def value
  @value
end