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