Class: Ektoplayer::Models::Trackloader

Inherits:
Model
  • Object
show all
Defined in:
lib/ektoplayer/models/trackloader.rb

Instance Attribute Summary

Attributes inherited from Model

#events

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Trackloader

Returns a new instance of Trackloader.



6
7
8
9
10
11
12
13
14
# File 'lib/ektoplayer/models/trackloader.rb', line 6

def initialize(client)
   super()
   @trackloader = client.trackloader

   %w(get_track_file download_album downloads
   ).each do |m|
      self.define_singleton_method(m, &@trackloader.method(m))
   end
end