Class: Rusic::Uploaders::Template

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

Instance Attribute Summary

Attributes inherited from Base

#api_host, #api_key, #file, #theme

Instance Method Summary collapse

Methods inherited from Base

#upload_file

Constructor Details

#initialize(file, path) ⇒ Template

Returns a new instance of Template.



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

def initialize(file, path)
  @file = file
  @path = path
end

Instance Method Details

#performObject



9
10
11
# File 'lib/rusic/uploaders/template.rb', line 9

def perform
  client["themes/#{theme}/templates/#{@path}"].put(params)
end