Sha256: afe624a0f60f5a5af06111e9fbe4ed08926e6134e38f861d024961e5a2e0e939

Contents?: true

Size: 544 Bytes

Versions: 1

Compression:

Stored size: 544 Bytes

Contents

# -*- coding: utf-8 -*-
=begin rdoc

Blob abstract model suitable for our
typical kinds of data files in our app.

We can store the blob on the local file system (see BlobFile),
We can make the blob accessible via URI (see BlobURI).
We can export the blob to an external system (see BlobExport).

=end

class Blob

  def name; @name; end
  def name=x; @name=x; end

  def initialize(options = {})
    @name ||= options[:name]
  end

  def ==(other)
    self.name == other.name
  end

  def eql?(other)
    self.name.eql?(other.name)
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sixarm_ruby_blob-2.0.0 lib/sixarm_ruby_blob/base.rb