Class: LedgerSync::Util::Performer
- Inherits:
-
Object
- Object
- LedgerSync::Util::Performer
- Defined in:
- lib/ledger_sync/util/performer.rb
Instance Attribute Summary collapse
-
#operations ⇒ Object
readonly
Returns the value of attribute operations.
Instance Method Summary collapse
-
#initialize(operations:) ⇒ Performer
constructor
A new instance of Performer.
- #perform ⇒ Object
Constructor Details
#initialize(operations:) ⇒ Performer
Returns a new instance of Performer.
8 9 10 |
# File 'lib/ledger_sync/util/performer.rb', line 8 def initialize(operations:) @operations = operations end |
Instance Attribute Details
#operations ⇒ Object (readonly)
Returns the value of attribute operations.
6 7 8 |
# File 'lib/ledger_sync/util/performer.rb', line 6 def operations @operations end |
Instance Method Details
#perform ⇒ Object
12 13 14 15 16 |
# File 'lib/ledger_sync/util/performer.rb', line 12 def perform @perform ||= validate_all .and_then { perform_all } .and_then { Result.Success(self) } end |