Class: Rusic::Uploaders::Template
- Defined in:
- lib/rusic/uploaders/template.rb
Instance Attribute Summary
Attributes inherited from Base
#api_host, #api_key, #file, #theme
Instance Method Summary collapse
-
#initialize(file, path) ⇒ Template
constructor
A new instance of Template.
- #perform ⇒ Object
Methods inherited from Base
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
#perform ⇒ Object
9 10 11 |
# File 'lib/rusic/uploaders/template.rb', line 9 def perform client["themes/#{theme}/templates/#{@path}"].put(params) end |