Class: Memoria::Snapshot

Inherits:
Object
  • Object
show all
Defined in:
lib/memoria/snapshot.rb

Overview

Stores the snapshot details.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Snapshot

Creates a new snapshot.

Examples:

snapshot = Snapshot.new('listing-all-users')


25
26
27
# File 'lib/memoria/snapshot.rb', line 25

def initialize(name)
  @name = name
end

Instance Attribute Details

#nameString (readonly)

Returns the name of the snapshot. Each snapshot should have a unique name.

Examples:

snapshot = Snapshot.new('listing-all-users')
snapshot.name #=> 'listing-all-users'

Returns:

  • (String)

    The name of the snapshot.



14
15
16
# File 'lib/memoria/snapshot.rb', line 14

def name
  @name
end