Class: Bkblz::V1::DeleteFileVersionRequest
- Defined in:
- lib/bkblz/v1/delete_file_version.rb
Instance Method Summary collapse
- #build_request(session) ⇒ Object
-
#initialize(short_file_info) ⇒ DeleteFileVersionRequest
constructor
A new instance of DeleteFileVersionRequest.
Methods inherited from Request
response_class, #send, url_suffix
Constructor Details
#initialize(short_file_info) ⇒ DeleteFileVersionRequest
Returns a new instance of DeleteFileVersionRequest.
13 14 15 16 |
# File 'lib/bkblz/v1/delete_file_version.rb', line 13 def initialize(short_file_info) @body = {:file_name => short_file_info.file_name, :file_id => short_file_info.file_id} end |
Instance Method Details
#build_request(session) ⇒ Object
18 19 20 |
# File 'lib/bkblz/v1/delete_file_version.rb', line 18 def build_request(session) session.create_post url(session), @body end |