Class: SandthornSequelProjection::Configuration
- Inherits:
-
Object
- Object
- SandthornSequelProjection::Configuration
- Defined in:
- lib/sandthorn_sequel_projection.rb
Instance Attribute Summary collapse
-
#batch_size ⇒ Object
Returns the value of attribute batch_size.
-
#db_connection ⇒ Object
Returns the value of attribute db_connection.
-
#event_stores ⇒ Object
Returns the value of attribute event_stores.
-
#projections_folder ⇒ Object
Returns the value of attribute projections_folder.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize {|_self| ... } ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize {|_self| ... } ⇒ Configuration
Returns a new instance of Configuration.
47 48 49 |
# File 'lib/sandthorn_sequel_projection.rb', line 47 def initialize yield(self) if block_given? end |
Instance Attribute Details
#batch_size ⇒ Object
Returns the value of attribute batch_size.
45 46 47 |
# File 'lib/sandthorn_sequel_projection.rb', line 45 def batch_size @batch_size end |
#db_connection ⇒ Object
Returns the value of attribute db_connection.
45 46 47 |
# File 'lib/sandthorn_sequel_projection.rb', line 45 def db_connection @db_connection end |
#event_stores ⇒ Object
Returns the value of attribute event_stores.
45 46 47 |
# File 'lib/sandthorn_sequel_projection.rb', line 45 def event_stores @event_stores end |
#projections_folder ⇒ Object
Returns the value of attribute projections_folder.
45 46 47 |
# File 'lib/sandthorn_sequel_projection.rb', line 45 def projections_folder @projections_folder end |
Class Method Details
.default ⇒ Object
51 52 53 54 55 |
# File 'lib/sandthorn_sequel_projection.rb', line 51 def self.default self.new do |c| c.batch_size = 40 end end |