Sha256: c81fb9a4ce294217532e7eb69cc42ba9fc6da4297f2be237403bc0741cdc8fa9
Contents?: true
Size: 460 Bytes
Versions: 22
Compression:
Stored size: 460 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 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
22 entries across 22 versions & 22 rubygems