class Dropdown::OutputStores::DropboxStore
Attributes
path[R]
Public Class Methods
new(output_path)
click to toggle source
# File lib/dropdown/output_stores/dropbox_store.rb, line 8 def initialize(output_path) @output_path = output_path end
Public Instance Methods
save(contents, file_name)
click to toggle source
# File lib/dropdown/output_stores/dropbox_store.rb, line 12 def save(contents, file_name) @path = File.join @output_path, file_name client.put_file(@path, contents, true) end
Private Instance Methods
client()
click to toggle source
# File lib/dropdown/output_stores/dropbox_store.rb, line 19 def client @client ||= DropboxClient.new(Dropdown.configuration.dropbox_access_token) end