Module: LedgerSync::ResultBase::HelperMethods
- Defined in:
- lib/ledger_sync/result.rb
Instance Method Summary collapse
-
#Failure(error = nil, *args, **keywords) ⇒ Object
rubocop:disable Naming/MethodName.
-
#Success(value = nil, *args, **keywords) ⇒ Object
rubocop:disable Naming/MethodName.
Instance Method Details
#Failure(error = nil, *args, **keywords) ⇒ Object
rubocop:disable Naming/MethodName
10 11 12 |
# File 'lib/ledger_sync/result.rb', line 10 def Failure(error = nil, *args, **keywords) # rubocop:disable Naming/MethodName self::Failure.new(error, *args, **keywords) end |
#Success(value = nil, *args, **keywords) ⇒ Object
rubocop:disable Naming/MethodName
6 7 8 |
# File 'lib/ledger_sync/result.rb', line 6 def Success(value = nil, *args, **keywords) # rubocop:disable Naming/MethodName self::Success.new(value, *args, **keywords) end |