class Rusic::Uploaders::Template
Public Class Methods
new(file, path)
click to toggle source
# File lib/rusic/uploaders/template.rb, line 4 def initialize(file, path) @file = file @path = path end
Public Instance Methods
perform()
click to toggle source
# File lib/rusic/uploaders/template.rb, line 9 def perform client["themes/#{theme}/templates/#{@path}"].put(params) end
Private Instance Methods
body()
click to toggle source
# File lib/rusic/uploaders/template.rb, line 19 def body File.read(file.pathname.to_s) end
params()
click to toggle source
# File lib/rusic/uploaders/template.rb, line 15 def params { template: { body: body} } end