Class: DatabaseRollbacker::Savepoint

Inherits:
Object
  • Object
show all
Defined in:
lib/database_rollbacker/savepoint.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, savepoint_id) ⇒ Savepoint

Returns a new instance of Savepoint.



4
5
6
7
# File 'lib/database_rollbacker/savepoint.rb', line 4

def initialize(name, savepoint_id)
  @name = name
  @savepoint_id = savepoint_id
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



2
3
4
# File 'lib/database_rollbacker/savepoint.rb', line 2

def name
  @name
end

#savepoint_idObject

Returns the value of attribute savepoint_id.



2
3
4
# File 'lib/database_rollbacker/savepoint.rb', line 2

def savepoint_id
  @savepoint_id
end