Class: FakeS3::S3Object
- Inherits:
-
Object
- Object
- FakeS3::S3Object
- Includes:
- Comparable
- Defined in:
- lib/fakes3/s3_object.rb
Instance Attribute Summary collapse
-
#content_disposition ⇒ Object
Returns the value of attribute content_disposition.
-
#content_encoding ⇒ Object
Returns the value of attribute content_encoding.
-
#content_type ⇒ Object
Returns the value of attribute content_type.
-
#creation_date ⇒ Object
Returns the value of attribute creation_date.
-
#custom_metadata ⇒ Object
Returns the value of attribute custom_metadata.
-
#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_disposition ⇒ Object
Returns the value of attribute content_disposition.
4 5 6 |
# File 'lib/fakes3/s3_object.rb', line 4 def content_disposition @content_disposition end |
#content_encoding ⇒ Object
Returns the value of attribute content_encoding.
4 5 6 |
# File 'lib/fakes3/s3_object.rb', line 4 def content_encoding @content_encoding end |
#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 |
#custom_metadata ⇒ Object
Returns the value of attribute custom_metadata.
4 5 6 |
# File 'lib/fakes3/s3_object.rb', line 4 def @custom_metadata 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) object.is_a?(self.class) ? (@name <=> object.name) : nil end |
#eql?(object) ⇒ Boolean
10 11 12 |
# File 'lib/fakes3/s3_object.rb', line 10 def eql?(object) object.is_a?(self.class) ? (@name == object.name) : false end |
#hash ⇒ Object
6 7 8 |
# File 'lib/fakes3/s3_object.rb', line 6 def hash @name.hash end |