Class: FakeS3::S3Object
- Inherits:
-
Object
- Object
- FakeS3::S3Object
- Includes:
- Comparable
- Defined in:
- lib/fakes3/s3_object.rb
Instance Attribute Summary collapse
-
#content_type ⇒ Object
Returns the value of attribute content_type.
-
#creation_date ⇒ Object
Returns the value of attribute creation_date.
-
#io ⇒ Object
Returns the value of attribute io.
-
#md5 ⇒ Object
Returns the value of attribute md5.
-
#modified_date ⇒ Object
Returns the value of attribute modified_date.
-
#name ⇒ Object
Returns the value of attribute name.
-
#size ⇒ Object
Returns the value of attribute size.
Instance Method Summary collapse
-
#<=>(object) ⇒ Object
Sort by the object’s name.
- #eql?(object) ⇒ Boolean
- #hash ⇒ Object
Instance Attribute Details
#content_type ⇒ Object
Returns the value of attribute content_type.
4 5 6 |
# File 'lib/fakes3/s3_object.rb', line 4 def content_type @content_type end |
#creation_date ⇒ Object
Returns the value of attribute creation_date.
4 5 6 |
# File 'lib/fakes3/s3_object.rb', line 4 def creation_date @creation_date end |
#io ⇒ Object
Returns the value of attribute io.
4 5 6 |
# File 'lib/fakes3/s3_object.rb', line 4 def io @io end |
#md5 ⇒ Object
Returns the value of attribute md5.
4 5 6 |
# File 'lib/fakes3/s3_object.rb', line 4 def md5 @md5 end |
#modified_date ⇒ Object
Returns the value of attribute modified_date.
4 5 6 |
# File 'lib/fakes3/s3_object.rb', line 4 def modified_date @modified_date end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/fakes3/s3_object.rb', line 4 def name @name end |
#size ⇒ Object
Returns the value of attribute size.
4 5 6 |
# File 'lib/fakes3/s3_object.rb', line 4 def size @size end |
Instance Method Details
#<=>(object) ⇒ Object
Sort by the object’s name
15 16 17 |
# File 'lib/fakes3/s3_object.rb', line 15 def <=>(object) @name <=> object.name end |
#eql?(object) ⇒ Boolean
10 11 12 |
# File 'lib/fakes3/s3_object.rb', line 10 def eql?(object) @name == object.name end |
#hash ⇒ Object
6 7 8 |
# File 'lib/fakes3/s3_object.rb', line 6 def hash @name.hash end |