Sha256: 3559a0d7f07b7a7a819f75d8425c0ebf359ce0f4ae6f2a10505f0bedd243087f
Contents?: true
Size: 475 Bytes
Versions: 4
Compression:
Stored size: 475 Bytes
Contents
module FakeS3 class S3Object include Comparable attr_accessor :name,:size,:creation_date,:modified_date,:md5,:io,:content_type,:content_disposition,:content_encoding,:custom_metadata,:cache_control def hash @name.hash end def eql?(object) object.is_a?(self.class) ? (@name == object.name) : false end # Sort by the object's name def <=>(object) object.is_a?(self.class) ? (@name <=> object.name) : nil end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
fakes3-2.0.0 | lib/fakes3/s3_object.rb |
fakes3-1.3.1 | lib/fakes3/s3_object.rb |
fakes3-1.3.0 | lib/fakes3/s3_object.rb |
fakes3-1.2.1 | lib/fakes3/s3_object.rb |