Class: MojFileUploaderApiClient::DeleteFile
- Inherits:
-
HttpClient
- Object
- HttpClient
- MojFileUploaderApiClient::DeleteFile
- Defined in:
- lib/mojfile_uploader_api_client/delete_file.rb
Constant Summary
Constants inherited from HttpClient
Instance Attribute Summary collapse
-
#collection_ref ⇒ Object
Returns the value of attribute collection_ref.
-
#filename ⇒ Object
Returns the value of attribute filename.
-
#folder ⇒ Object
Returns the value of attribute folder.
Attributes inherited from HttpClient
Instance Method Summary collapse
- #endpoint ⇒ Object
-
#initialize(collection_ref:, folder: nil, filename:) ⇒ DeleteFile
constructor
A new instance of DeleteFile.
- #verb ⇒ Object
Methods inherited from HttpClient
#call, configure, #options, #payload, #payload?
Constructor Details
#initialize(collection_ref:, folder: nil, filename:) ⇒ DeleteFile
Returns a new instance of DeleteFile.
5 6 7 8 9 |
# File 'lib/mojfile_uploader_api_client/delete_file.rb', line 5 def initialize(collection_ref:, folder: nil, filename:) self.collection_ref = collection_ref self.folder = folder self.filename = filename end |
Instance Attribute Details
#collection_ref ⇒ Object
Returns the value of attribute collection_ref.
3 4 5 |
# File 'lib/mojfile_uploader_api_client/delete_file.rb', line 3 def collection_ref @collection_ref end |
#filename ⇒ Object
Returns the value of attribute filename.
3 4 5 |
# File 'lib/mojfile_uploader_api_client/delete_file.rb', line 3 def filename @filename end |
#folder ⇒ Object
Returns the value of attribute folder.
3 4 5 |
# File 'lib/mojfile_uploader_api_client/delete_file.rb', line 3 def folder @folder end |
Instance Method Details
#endpoint ⇒ Object
15 16 17 |
# File 'lib/mojfile_uploader_api_client/delete_file.rb', line 15 def endpoint [collection_ref, folder, filename].compact.join('/') end |
#verb ⇒ Object
11 12 13 |
# File 'lib/mojfile_uploader_api_client/delete_file.rb', line 11 def verb :delete end |