Class: Bkblz::V1::CreateBucketRequest

Inherits:
Request
  • Object
show all
Defined in:
lib/bkblz/v1/create_bucket.rb

Instance Method Summary collapse

Methods inherited from Request

response_class, #send, url_suffix

Constructor Details

#initialize(bucket_model) ⇒ CreateBucketRequest

Returns a new instance of CreateBucketRequest.



13
14
15
# File 'lib/bkblz/v1/create_bucket.rb', line 13

def initialize(bucket_model)
  @body = bucket_model.to_map
end

Instance Method Details

#build_request(session) ⇒ Object



17
18
19
# File 'lib/bkblz/v1/create_bucket.rb', line 17

def build_request(session)
  session.create_post url(session), @body
end