Class: Nandi::Instructions::RemoveReference
- Inherits:
-
Object
- Object
- Nandi::Instructions::RemoveReference
- Defined in:
- lib/nandi/instructions/remove_reference.rb
Instance Attribute Summary collapse
-
#extra_args ⇒ Object
readonly
Returns the value of attribute extra_args.
-
#ref_name ⇒ Object
readonly
Returns the value of attribute ref_name.
-
#table ⇒ Object
readonly
Returns the value of attribute table.
Instance Method Summary collapse
-
#initialize(table:, ref_name:, **kwargs) ⇒ RemoveReference
constructor
A new instance of RemoveReference.
- #lock ⇒ Object
- #procedure ⇒ Object
Constructor Details
#initialize(table:, ref_name:, **kwargs) ⇒ RemoveReference
Returns a new instance of RemoveReference.
8 9 10 11 12 |
# File 'lib/nandi/instructions/remove_reference.rb', line 8 def initialize(table:, ref_name:, **kwargs) @table = table @ref_name = ref_name @extra_args = kwargs end |
Instance Attribute Details
#extra_args ⇒ Object (readonly)
Returns the value of attribute extra_args.
6 7 8 |
# File 'lib/nandi/instructions/remove_reference.rb', line 6 def extra_args @extra_args end |
#ref_name ⇒ Object (readonly)
Returns the value of attribute ref_name.
6 7 8 |
# File 'lib/nandi/instructions/remove_reference.rb', line 6 def ref_name @ref_name end |
#table ⇒ Object (readonly)
Returns the value of attribute table.
6 7 8 |
# File 'lib/nandi/instructions/remove_reference.rb', line 6 def table @table end |
Instance Method Details
#lock ⇒ Object
18 19 20 |
# File 'lib/nandi/instructions/remove_reference.rb', line 18 def lock Nandi::Migration::LockWeights::ACCESS_EXCLUSIVE end |
#procedure ⇒ Object
14 15 16 |
# File 'lib/nandi/instructions/remove_reference.rb', line 14 def procedure :remove_reference end |