Module: Hubbado::Sequence::Macros::Model::Find::Substitute
- Includes:
- RecordInvocation
- Defined in:
- lib/hubbado/sequence/macros/model/find.rb
Instance Method Summary collapse
Instance Method Details
#fail_with(**error_attrs) ⇒ Object
34 35 36 37 |
# File 'lib/hubbado/sequence/macros/model/find.rb', line 34 def fail_with(**error_attrs) @configured_error = error_attrs self end |
#fetched?(**kwargs) ⇒ Boolean
51 52 53 |
# File 'lib/hubbado/sequence/macros/model/find.rb', line 51 def fetched?(**kwargs) invoked?(:call, **kwargs) end |
#succeed_with(value) ⇒ Object
28 29 30 31 32 |
# File 'lib/hubbado/sequence/macros/model/find.rb', line 28 def succeed_with(value) @return_value = value @configured_success = true self end |