Class: Hanami::Extensions::Operation::SliceConfiguredDBOperation::SliceInstanceMethods Private

Inherits:
Module
  • Object
show all
Defined in:
lib/hanami/extensions/operation/slice_configured_db_operation.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Since:

  • 2.2.0

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(slice) ⇒ SliceInstanceMethods

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of SliceInstanceMethods.

Since:

  • 2.2.0



61
62
63
# File 'lib/hanami/extensions/operation/slice_configured_db_operation.rb', line 61

def initialize(slice)
  @slice = slice
end

Instance Attribute Details

#sliceObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 2.2.0



59
60
61
# File 'lib/hanami/extensions/operation/slice_configured_db_operation.rb', line 59

def slice
  @slice
end

Instance Method Details

#included(operation_class) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 2.2.0



65
66
67
# File 'lib/hanami/extensions/operation/slice_configured_db_operation.rb', line 65

def included(operation_class)
  define_transaction
end