Class: Bkblz::V1::ListFileNamesRequest
- Defined in:
- lib/bkblz/v1/list_file_names.rb
Instance Attribute Summary collapse
-
#bucket ⇒ Object
readonly
Returns the value of attribute bucket.
Instance Method Summary collapse
- #build_request(session) ⇒ Object
-
#initialize(bucket, max_file_count = 1000, start_file_name = nil) ⇒ ListFileNamesRequest
constructor
A new instance of ListFileNamesRequest.
Methods inherited from Request
response_class, #send, url_suffix
Constructor Details
#initialize(bucket, max_file_count = 1000, start_file_name = nil) ⇒ ListFileNamesRequest
Returns a new instance of ListFileNamesRequest.
22 23 24 25 26 27 28 |
# File 'lib/bkblz/v1/list_file_names.rb', line 22 def initialize(bucket, max_file_count=1000, start_file_name=nil) @bucket = bucket @body = {} @body[:bucket_id] = bucket.bucket_id @body[:max_file_count] = max_file_count @body[:start_file_name] = start_file_name if start_file_name end |
Instance Attribute Details
#bucket ⇒ Object (readonly)
Returns the value of attribute bucket.
20 21 22 |
# File 'lib/bkblz/v1/list_file_names.rb', line 20 def bucket @bucket end |
Instance Method Details
#build_request(session) ⇒ Object
30 31 32 |
# File 'lib/bkblz/v1/list_file_names.rb', line 30 def build_request(session) session.create_post url(session), @body end |