Class: AWS::S3::ACL::OptionProcessor

Inherits:
Object
  • Object
show all
Defined in:
lib/aws/s3/acl.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ OptionProcessor

Returns a new instance of OptionProcessor.



597
598
599
600
601
# File 'lib/aws/s3/acl.rb', line 597

def initialize(options)
  options.to_normalized_options!
  @options      = options
  @access_level = extract_access_level
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



590
591
592
# File 'lib/aws/s3/acl.rb', line 590

def options
  @options
end

Class Method Details

.process!(options) ⇒ Object



592
593
594
# File 'lib/aws/s3/acl.rb', line 592

def process!(options)
  new(options).process!
end

Instance Method Details

#process!Object



603
604
605
606
607
# File 'lib/aws/s3/acl.rb', line 603

def process!
  return unless access_level_specified?
  validate!
  options['x-amz-acl'] = access_level
end