Class: BrickFTP::API::FileOperation::UploadingResult
- Defined in:
- lib/brick_ftp/api/file_operation/uploading_result.rb
Instance Attribute Summary
Attributes inherited from Base
Class Method Summary collapse
Methods inherited from Base
all, #as_json, #delete_property, #destroy, find, inherited, #initialize, #read_property, #to_json, #update, #write_property
Constructor Details
This class inherits a constructor from BrickFTP::API::Base
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class BrickFTP::API::Base
Class Method Details
.create(path:, ref:) ⇒ Object
14 15 16 17 18 |
# File 'lib/brick_ftp/api/file_operation/uploading_result.rb', line 14 def self.create(path:, ref:) api_client = BrickFTP::HTTPClient.new res = api_client.post(api_path_for(:create, path: path), params: { action: 'end', ref: ref }) new(res.symbolize_keys) end |