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

Version Path
fakes3t1-1.2.0 lib/fakes3/s3_object.rb
fakes3testing2-1.2.0 lib/fakes3/s3_object.rb
fakes3testing1-1.2.0 lib/fakes3/s3_object.rb
fakes3s37-1.2.0 lib/fakes3/s3_object.rb
fakes3test12-1.2.0 lib/fakes3/s3_object.rb
fakes3test11-1.2.0 lib/fakes3/s3_object.rb
fakes3test10-1.2.0 lib/fakes3/s3_object.rb
fakes3test9-1.2.0 lib/fakes3/s3_object.rb
fakes3test8-1.2.0 lib/fakes3/s3_object.rb
fakes3test7-1.2.0 lib/fakes3/s3_object.rb
fakes3test6-1.2.0 lib/fakes3/s3_object.rb
fakes3test5-1.2.0 lib/fakes3/s3_object.rb
fakes3test4-1.2.0 lib/fakes3/s3_object.rb
fakes3test2-1.2.0 lib/fakes3/s3_object.rb
fakes3test-1.2.0 lib/fakes3/s3_object.rb
fakes3as6-1.2.0 lib/fakes3/s3_object.rb
fakes3as5-1.2.0 lib/fakes3/s3_object.rb
fakes3as4-1.2.0 lib/fakes3/s3_object.rb
fakes3as3-1.2.0 lib/fakes3/s3_object.rb
fakes3as2-1.2.0 lib/fakes3/s3_object.rb