Class: Operatic::Success

Inherits:
Result
  • Object
show all
Defined in:
lib/operatic/result.rb

Instance Attribute Summary

Attributes inherited from Result

#data

Instance Method Summary collapse

Methods inherited from Result

#[], #deconstruct, #deconstruct_keys, #freeze, #initialize, #method_missing, #respond_to?, #to_h

Constructor Details

This class inherits a constructor from Operatic::Result

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Operatic::Result

Instance Method Details

#failure?false

Returns:

  • (false)


95
96
97
# File 'lib/operatic/result.rb', line 95

def failure?
  false
end

#success?true

Returns:

  • (true)


100
101
102
# File 'lib/operatic/result.rb', line 100

def success?
  true
end