Class: Dropwallet::CDN::File

Inherits:
Object
  • Object
show all
Defined in:
lib/dropwallet/cdn/file.rb

Constant Summary collapse

ServiceUrl =
'http://localhost:2000'

Class Method Summary collapse

Class Method Details

.upload(path) ⇒ Object



6
7
8
# File 'lib/dropwallet/cdn/file.rb', line 6

def self.upload(path)
  return JSON.parse(RestClient.post("#{ServiceUrl}/files",:file => File.new(path)))
end