Class: Fluffy::S3Path
- Inherits:
-
Object
- Object
- Fluffy::S3Path
- Defined in:
- lib/fluffy/s3_path.rb
Instance Attribute Summary collapse
-
#access_key_id ⇒ Object
Returns the value of attribute access_key_id.
-
#bucket ⇒ Object
Returns the value of attribute bucket.
-
#file_path ⇒ Object
Returns the value of attribute file_path.
-
#s3 ⇒ Object
Returns the value of attribute s3.
-
#secret_access_key ⇒ Object
Returns the value of attribute secret_access_key.
-
#start_path ⇒ Object
Returns the value of attribute start_path.
Instance Method Summary collapse
-
#initialize(file_path, access_key_id, secret_access_key, bucket, start_path = '') ⇒ S3Path
constructor
A new instance of S3Path.
Constructor Details
#initialize(file_path, access_key_id, secret_access_key, bucket, start_path = '') ⇒ S3Path
Returns a new instance of S3Path.
5 6 7 8 9 10 11 12 |
# File 'lib/fluffy/s3_path.rb', line 5 def initialize(file_path, access_key_id, secret_access_key, bucket, start_path = '') self.file_path = file_path self.access_key_id = access_key_id self.secret_access_key = secret_access_key self.s3 = RightAws::S3.new(self.access_key_id, self.secret_access_key) self.bucket = self.s3.bucket(bucket) self.start_path = start_path end |
Instance Attribute Details
#access_key_id ⇒ Object
Returns the value of attribute access_key_id.
3 4 5 |
# File 'lib/fluffy/s3_path.rb', line 3 def access_key_id @access_key_id end |
#bucket ⇒ Object
Returns the value of attribute bucket.
3 4 5 |
# File 'lib/fluffy/s3_path.rb', line 3 def bucket @bucket end |
#file_path ⇒ Object
Returns the value of attribute file_path.
3 4 5 |
# File 'lib/fluffy/s3_path.rb', line 3 def file_path @file_path end |
#s3 ⇒ Object
Returns the value of attribute s3.
3 4 5 |
# File 'lib/fluffy/s3_path.rb', line 3 def s3 @s3 end |
#secret_access_key ⇒ Object
Returns the value of attribute secret_access_key.
3 4 5 |
# File 'lib/fluffy/s3_path.rb', line 3 def secret_access_key @secret_access_key end |
#start_path ⇒ Object
Returns the value of attribute start_path.
3 4 5 |
# File 'lib/fluffy/s3_path.rb', line 3 def start_path @start_path end |