Class: SandthornSequelProjection::Configuration

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize {|_self| ... } ⇒ Configuration

Returns a new instance of Configuration.

Yields:

  • (_self)

Yield Parameters:



48
49
50
# File 'lib/sandthorn_sequel_projection.rb', line 48

def initialize
  yield(self) if block_given?
end

Instance Attribute Details

#batch_sizeObject

Returns the value of attribute batch_size.



46
47
48
# File 'lib/sandthorn_sequel_projection.rb', line 46

def batch_size
  @batch_size
end

#db_connectionObject

Returns the value of attribute db_connection.



46
47
48
# File 'lib/sandthorn_sequel_projection.rb', line 46

def db_connection
  @db_connection
end

#event_storesObject

Returns the value of attribute event_stores.



46
47
48
# File 'lib/sandthorn_sequel_projection.rb', line 46

def event_stores
  @event_stores
end

#projections_folderObject

Returns the value of attribute projections_folder.



46
47
48
# File 'lib/sandthorn_sequel_projection.rb', line 46

def projections_folder
  @projections_folder
end

Class Method Details

.defaultObject



52
53
54
55
56
# File 'lib/sandthorn_sequel_projection.rb', line 52

def self.default
  self.new do |c|
    c.batch_size = 40
  end
end