Sha256: 22a1a30d6910c467f39c82f0428207af396211b5194ce1d8efad36c1cd27bb52

Contents?: true

Size: 439 Bytes

Versions: 91

Compression:

Stored size: 439 Bytes

Contents

module FakeS3
  class S3Object
    include Comparable
    attr_accessor :name,:size,:creation_date,:modified_date,:md5,:io,:content_type,: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

91 entries across 91 versions & 2 rubygems

Version Path
plntr-fakes3-1.0.0.pre.10alpha34 lib/fakes3/s3_object.rb
plntr-fakes3-1.0.0.pre.10alpha33 lib/fakes3/s3_object.rb
plntr-fakes3-1.0.0.pre.10alpha29 lib/fakes3/s3_object.rb
plntr-fakes3-1.0.0.pre.10alpha28 lib/fakes3/s3_object.rb
plntr-fakes3-1.0.0.pre.10alpha27 lib/fakes3/s3_object.rb
plntr-fakes3-1.0.0.pre.10alpha26 lib/fakes3/s3_object.rb
plntr-fakes3-1.0.0.pre.10alpha25 lib/fakes3/s3_object.rb
plntr-fakes3-1.0.0.pre.10alpha24 lib/fakes3/s3_object.rb
plntr-fakes3-1.0.0.pre.10alpha23 lib/fakes3/s3_object.rb
plntr-fakes3-1.0.0.pre.10alpha22 lib/fakes3/s3_object.rb
plntr-fakes3-1.0.0.pre.10alpha21 lib/fakes3/s3_object.rb
plntr-fakes3-1.0.0.pre.10alpha20 lib/fakes3/s3_object.rb
plntr-fakes3-1.0.0.pre.10alpha19 lib/fakes3/s3_object.rb
plntr-fakes3-1.0.0.pre.10alpha18 lib/fakes3/s3_object.rb
plntr-fakes3-1.0.0.pre.10alpha17 lib/fakes3/s3_object.rb
plntr-fakes3-1.0.0.pre.10alpha16 lib/fakes3/s3_object.rb
plntr-fakes3-1.0.0.pre.10alpha15 lib/fakes3/s3_object.rb
plntr-fakes3-1.0.0.pre.10alpha14 lib/fakes3/s3_object.rb
plntr-fakes3-1.0.0.pre.10alpha13 lib/fakes3/s3_object.rb
plntr-fakes3-1.0.0.pre.10alpha12 lib/fakes3/s3_object.rb