Class: Rusic::Uploaders::Asset

Inherits:
Base
  • Object
show all
Defined in:
lib/rusic/uploaders/asset.rb

Instance Attribute Summary

Attributes inherited from Base

#api_host, #api_key, #file, #theme

Instance Method Summary collapse

Methods inherited from Base

#initialize, #upload_file

Constructor Details

This class inherits a constructor from Rusic::Uploaders::Base

Instance Method Details

#performObject



4
5
6
# File 'lib/rusic/uploaders/asset.rb', line 4

def perform
  client["themes/#{theme}/assets/#{file.filename}"].put(params)
end