Class: SFile
- Inherits:
-
Object
- Object
- SFile
- Defined in:
- lib/s3fsr.rb
Instance Method Summary collapse
- #delete ⇒ Object
-
#initialize(parent, s3obj) ⇒ SFile
constructor
A new instance of SFile.
- #is_directory? ⇒ Boolean
- #is_file? ⇒ Boolean
- #name ⇒ Object
- #size ⇒ Object
- #touch ⇒ Object
- #value ⇒ Object
- #write(data) ⇒ Object
Constructor Details
Instance Method Details
#delete ⇒ Object
44 45 46 47 |
# File 'lib/s3fsr.rb', line 44 def delete AWS::S3::S3Object.delete @s3obj.key, @s3obj.bucket.name @parent.content_deleted name end |
#is_directory? ⇒ Boolean
32 33 34 |
# File 'lib/s3fsr.rb', line 32 def is_directory? false end |
#is_file? ⇒ Boolean
35 36 37 |
# File 'lib/s3fsr.rb', line 35 def is_file? true end |
#name ⇒ Object
29 30 31 |
# File 'lib/s3fsr.rb', line 29 def name @name end |
#size ⇒ Object
48 49 50 |
# File 'lib/s3fsr.rb', line 48 def size @s3obj.content_length end |
#touch ⇒ Object
51 52 |
# File 'lib/s3fsr.rb', line 51 def touch end |
#value ⇒ Object
38 39 40 |
# File 'lib/s3fsr.rb', line 38 def value @s3obj.value(:reload) end |