Class: S3SigGen::Generator
- Inherits:
-
Object
- Object
- S3SigGen::Generator
- Defined in:
- lib/s3_sig_gen/generator.rb
Instance Attribute Summary collapse
-
#acl ⇒ Object
Returns the value of attribute acl.
-
#aws_access_key_id ⇒ Object
Returns the value of attribute aws_access_key_id.
-
#aws_secret_access_key ⇒ Object
Returns the value of attribute aws_secret_access_key.
-
#bucket ⇒ Object
Returns the value of attribute bucket.
-
#key ⇒ Object
Returns the value of attribute key.
-
#region ⇒ Object
Returns the value of attribute region.
-
#server_side_encryption ⇒ Object
Returns the value of attribute server_side_encryption.
Instance Method Summary collapse
-
#initialize(options = {}) {|_self| ... } ⇒ Generator
constructor
A new instance of Generator.
- #signature ⇒ Object
Constructor Details
#initialize(options = {}) {|_self| ... } ⇒ Generator
Returns a new instance of Generator.
11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/s3_sig_gen/generator.rb', line 11 def initialize = {} @aws_access_key_id = [:aws_access_key_id] @aws_secret_access_key = [:aws_secret_access_key] @region = [:region] || 'us-east-1' @bucket = [:bucket] @key = [:key] @acl = [:acl] || 'public-read' @server_side_encryption = [:server_side_encryption] || false yield self if block_given? end |
Instance Attribute Details
#acl ⇒ Object
Returns the value of attribute acl.
9 10 11 |
# File 'lib/s3_sig_gen/generator.rb', line 9 def acl @acl end |
#aws_access_key_id ⇒ Object
Returns the value of attribute aws_access_key_id.
9 10 11 |
# File 'lib/s3_sig_gen/generator.rb', line 9 def aws_access_key_id @aws_access_key_id end |
#aws_secret_access_key ⇒ Object
Returns the value of attribute aws_secret_access_key.
9 10 11 |
# File 'lib/s3_sig_gen/generator.rb', line 9 def aws_secret_access_key @aws_secret_access_key end |
#bucket ⇒ Object
Returns the value of attribute bucket.
9 10 11 |
# File 'lib/s3_sig_gen/generator.rb', line 9 def bucket @bucket end |
#key ⇒ Object
Returns the value of attribute key.
9 10 11 |
# File 'lib/s3_sig_gen/generator.rb', line 9 def key @key end |
#region ⇒ Object
Returns the value of attribute region.
9 10 11 |
# File 'lib/s3_sig_gen/generator.rb', line 9 def region @region end |
#server_side_encryption ⇒ Object
Returns the value of attribute server_side_encryption.
9 10 11 |
# File 'lib/s3_sig_gen/generator.rb', line 9 def server_side_encryption @server_side_encryption end |
Instance Method Details
#signature ⇒ Object
23 24 25 |
# File 'lib/s3_sig_gen/generator.rb', line 23 def signature build_signature end |