Class: SimpleOperation::WrappedValue

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/simple_operation/wrapped_value.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#delegate_sd_objObject (readonly) Also known as: unwrap

Returns the value of attribute delegate_sd_obj.



4
5
6
# File 'lib/simple_operation/wrapped_value.rb', line 4

def delegate_sd_obj
  @delegate_sd_obj
end

Instance Method Details

#on_failure(reason = nil) ⇒ Object



10
11
12
# File 'lib/simple_operation/wrapped_value.rb', line 10

def on_failure(reason = nil)
  self
end

#on_successObject



6
7
8
# File 'lib/simple_operation/wrapped_value.rb', line 6

def on_success
  self
end