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



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

def initialize(slice)
  super()
  @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



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

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



67
68
69
# File 'lib/hanami/extensions/operation/slice_configured_db_operation.rb', line 67

def included(operation_class)
  define_transaction
end