Class: AWS::S3::Bucket::BucketConfiguration
- Inherits:
-
XmlGenerator
- Object
- XmlGenerator
- AWS::S3::Bucket::BucketConfiguration
- Defined in:
- lib/aws/s3/bucket.rb
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
Returns the value of attribute location.
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(location) ⇒ BucketConfiguration
constructor
A new instance of BucketConfiguration.
Constructor Details
#initialize(location) ⇒ BucketConfiguration
Returns a new instance of BucketConfiguration.
86 87 88 89 |
# File 'lib/aws/s3/bucket.rb', line 86 def initialize(location) @location = location super() end |
Instance Attribute Details
#location ⇒ Object (readonly)
Returns the value of attribute location.
84 85 86 |
# File 'lib/aws/s3/bucket.rb', line 84 def location @location end |
Instance Method Details
#build ⇒ Object
91 92 93 94 95 96 |
# File 'lib/aws/s3/bucket.rb', line 91 def build return nil unless location == :eu xml.tag!('CreateBucketConfiguration') do xml.LocationConstraint 'EU' end end |