class MPD::Song
Hash with predefined structure (see MAPPINGS
) created from basic MPD
song info Additionaly it stores base data via data
Constants
- MAPPINGS
Attributes
data[R]
Public Class Methods
new(data)
click to toggle source
Calls superclass method
# File lib/mpd/song.rb, line 18 def initialize(data) super() @data = data MAPPINGS.each { |key, data_key| self[key] = data[data_key] } end