Method: Museo::Snapshot#initialize
- Defined in:
- lib/museo/snapshot.rb
#initialize(klass:, test_name:, response:) ⇒ Snapshot
Returns a new instance of Snapshot.
15 16 17 18 19 20 21 |
# File 'lib/museo/snapshot.rb', line 15 def initialize(klass:, test_name:, response:) @class_name = klass.to_s @test_name = test_name @response = response generate unless exists? end |