Class: Dropwallet::CDN::File
- Inherits:
-
Object
- Object
- Dropwallet::CDN::File
- Defined in:
- lib/dropwallet/cdn/file.rb
Constant Summary collapse
- ServiceUrl =
'http://localhost:2000'
Class Method Summary collapse
Class Method Details
.upload(path, container, name) ⇒ Object
6 7 8 |
# File 'lib/dropwallet/cdn/file.rb', line 6 def self.upload(path, container, name) return JSON.parse(RestClient.post("#{ServiceUrl}/files",{:file => File.new(path), :container=>container, :name=> name})) end |