Sha256: 43ece416b5b630f00207a636ebaeaae941d28fee2188a7f5431d170edae6f0ce

Contents?: true

Size: 321 Bytes

Versions: 5

Compression:

Stored size: 321 Bytes

Contents

module RackFakeS3
  class S3Object
    include Comparable
    attr_accessor :name,:size,:creation_date,:md5,:io,:content_type

    def hash
      @name.hash
    end

    def eql?(object)
      @name == object.name
    end

    # Sort by the object's name
    def <=>(object)
      @name <=> object.name
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rack_fake_s3-0.2.4 lib/rack_fake_s3/s3_object.rb
rack_fake_s3-0.2.3 lib/rack_fake_s3/s3_object.rb
rack_fake_s3-0.2.2 lib/rack_fake_s3/s3_object.rb
rack_fake_s3-0.2.1 lib/rack_fake_s3/s3_object.rb
rack_fake_s3-0.2.0 lib/rack_fake_s3/s3_object.rb