Class: Sequel::ConnectionGuard::Dataset Private

Inherits:
Object
  • Object
show all
Defined in:
lib/sequel/extensions/connection_guard/dataset.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.

A value object that stores all the information required to construct a Sequel dataset.

Since:

  • 0.1.0

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(connection_guard, table_name) ⇒ Dataset

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 Dataset.

Parameters:

Since:

  • 0.1.0



19
20
21
22
# File 'lib/sequel/extensions/connection_guard/dataset.rb', line 19

def initialize(connection_guard, table_name)
  @connection_guard = connection_guard
  @table_name = table_name
end

Instance Attribute Details

#connection_guardObject (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:

  • 0.1.0



12
13
14
# File 'lib/sequel/extensions/connection_guard/dataset.rb', line 12

def connection_guard
  @connection_guard
end

#table_nameObject (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:

  • 0.1.0



12
13
14
# File 'lib/sequel/extensions/connection_guard/dataset.rb', line 12

def table_name
  @table_name
end