Class: PgExport::ValueObjects::Failure

Inherits:
Result
  • Object
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

Constructor Details

This class inherits a constructor from PgExport::ValueObjects::Result

Instance Method Details

#bindObject



34
35
36
# File 'lib/pg_export/value_objects/result.rb', line 34

def bind
  self
end

#on_failure {|value| ... } ⇒ Object

Yields:



42
43
44
45
46
# File 'lib/pg_export/value_objects/result.rb', line 42

def on_failure
  yield value

  self
end

#on_successObject



38
39
40
# File 'lib/pg_export/value_objects/result.rb', line 38

def on_success
  self
end