Class: AWS::S3::Bucket::Builder
- Inherits:
-
XmlGenerator
- Object
- XmlGenerator
- AWS::S3::Bucket::Builder
- Defined in:
- lib/aws/s3/bucket.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
Returns the value of attribute location.
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(location) ⇒ Builder
constructor
A new instance of Builder.
Constructor Details
#initialize(location) ⇒ Builder
Returns a new instance of Builder.
67 68 69 70 |
# File 'lib/aws/s3/bucket.rb', line 67 def initialize(location) @location = location super() end |
Instance Attribute Details
#location ⇒ Object (readonly)
Returns the value of attribute location.
66 67 68 |
# File 'lib/aws/s3/bucket.rb', line 66 def location @location end |
Instance Method Details
#build ⇒ Object
72 73 74 75 76 77 |
# File 'lib/aws/s3/bucket.rb', line 72 def build return nil unless @location xml.tag!('CreateBucketConfiguration', 'xmlns' => 'http://s3.amazonaws.com/doc/2006-03-01/') do xml.LocationConstraint @location end end |