Class: PgExport::ValueObjects::Failure
- Inherits:
-
Result
- Object
- Result
- PgExport::ValueObjects::Failure
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
34
35
36
|
# File 'lib/pg_export/value_objects/result.rb', line 34
def bind
self
end
|
#on_failure {|value| ... } ⇒ Object
42
43
44
45
46
|
# File 'lib/pg_export/value_objects/result.rb', line 42
def on_failure
yield value
self
end
|
#on_success ⇒ Object
38
39
40
|
# File 'lib/pg_export/value_objects/result.rb', line 38
def on_success
self
end
|