Class: GetAccept::File

Inherits:
Resource show all
Defined in:
lib/get_accept/resources/file.rb

Instance Attribute Summary

Attributes inherited from Resource

#client

Instance Method Summary collapse

Methods inherited from Resource

#initialize

Constructor Details

This class inherits a constructor from GetAccept::Resource

Instance Method Details

#upload(data) ⇒ Object



3
4
5
# File 'lib/get_accept/resources/file.rb', line 3

def upload data
  post('/upload', data)
end