Sha256: 238a9d14c3494d3991b3532423f04c9572c20be198ac3a2bd2d1d027ff3a2a4c

Contents?: true

Size: 628 Bytes

Versions: 1

Compression:

Stored size: 628 Bytes

Contents

module Memoria
  # Stores the snapshot details.
  class Snapshot
    # Returns the name of the snapshot. Each snapshot should have a unique name.
    #
    # @example
    #   snapshot = Snapshot.new('listing-all-users')
    #   snapshot.name #=> 'listing-all-users'
    #
    # @return [String] The name of the snapshot.
    #
    # @api public
    #
    attr_reader :name

    # Creates a new snapshot.
    #
    # @example
    #   snapshot = Snapshot.new('listing-all-users')
    #
    # @return [Snapshot] An instance of +Snapshot+.
    #
    # @api public
    #
    def initialize(name)
      @name = name
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
memoria-0.1.0 lib/memoria/snapshot.rb