Class: Hatchet::Features::CELFailure

Inherits:
Struct
  • Object
show all
Defined in:
lib/hatchet/features/cel.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error:) ⇒ CELFailure

Returns a new instance of CELFailure.



13
14
15
# File 'lib/hatchet/features/cel.rb', line 13

def initialize(error:)
  super(status: "failure", error: error)
end

Instance Attribute Details

#errorObject

Returns the value of attribute error

Returns:

  • (Object)

    the current value of error



12
13
14
# File 'lib/hatchet/features/cel.rb', line 12

def error
  @error
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



12
13
14
# File 'lib/hatchet/features/cel.rb', line 12

def status
  @status
end