Class: Memoria::Snapshot
- Inherits:
-
Object
- Object
- Memoria::Snapshot
- Defined in:
- lib/memoria/snapshot.rb
Overview
Stores the snapshot details.
Instance Attribute Summary collapse
-
#name ⇒ String
readonly
Returns the name of the snapshot.
Instance Method Summary collapse
-
#initialize(name) ⇒ Snapshot
constructor
Creates a new snapshot.
Constructor Details
#initialize(name) ⇒ Snapshot
Creates a new snapshot.
25 26 27 |
# File 'lib/memoria/snapshot.rb', line 25 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ String (readonly)
Returns the name of the snapshot. Each snapshot should have a unique name.
14 15 16 |
# File 'lib/memoria/snapshot.rb', line 14 def name @name end |