Skip to content

Instantly share code, notes, and snippets.

require 'dropbox_sdk'
class FileProcessor
class File
def initialize(content, client)
@description = /\/(?<type>[a-z]+)\_(?<time>[a-zA-Z0-9]+)\_[a-zA-Z]+\_(?<id>[a-z0-9]+)/.match(content['path'])
@path = content['path']
@client = client
end