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.
91 92 93 94 |
# File 'lib/aws/s3/bucket.rb', line 91 def initialize(location) @location = location super() end |
Instance Attribute Details
#location ⇒ Object (readonly)
Returns the value of attribute location.
89 90 91 |
# File 'lib/aws/s3/bucket.rb', line 89 def location @location end |
Instance Method Details
#build ⇒ Object
96 97 98 99 100 101 |
# File 'lib/aws/s3/bucket.rb', line 96 def build return nil unless location == :eu xml.tag!('CreateBucketConfiguration') do xml.LocationConstraint 'EU' end end |