Class: MPV::Event::GetPropertyReply
- Inherits:
-
MPV::Event
- Object
- MPV::Event
- MPV::Event::GetPropertyReply
- Defined in:
- lib/mpvlib/event.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#value ⇒ Object
Returns the value of attribute value.
Attributes inherited from MPV::Event
Instance Method Summary collapse
-
#initialize(mpv_event) ⇒ GetPropertyReply
constructor
A new instance of GetPropertyReply.
Methods inherited 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
#name ⇒ Object
Returns the value of attribute name.
129 130 131 |
# File 'lib/mpvlib/event.rb', line 129 def name @name end |
#value ⇒ Object
Returns the value of attribute value.
130 131 132 |
# File 'lib/mpvlib/event.rb', line 130 def value @value end |