Class: PgExport::ValueObjects::Success
- Inherits:
-
Result
- Object
- Result
- PgExport::ValueObjects::Success
show all
- Defined in:
- lib/pg_export/value_objects/result.rb
Instance Attribute Summary
Attributes inherited from Result
#value
Instance Method Summary
collapse
Methods inherited from Result
#initialize
Instance Method Details
#bind ⇒ Object
18
19
20
|
# File 'lib/pg_export/value_objects/result.rb', line 18
def bind
yield
end
|
#on_failure ⇒ Object
28
29
30
|
# File 'lib/pg_export/value_objects/result.rb', line 28
def on_failure
self
end
|
#on_success {|value| ... } ⇒ Object
22
23
24
25
26
|
# File 'lib/pg_export/value_objects/result.rb', line 22
def on_success
yield value
self
end
|
#success ⇒ Object
14
15
16
|
# File 'lib/pg_export/value_objects/result.rb', line 14
def success
value
end
|