Class: Plutonium::Interaction::Response::Null

Inherits:
Base
  • Object
show all
Defined in:
lib/plutonium/interaction/response/null.rb

Overview

Represents a null response, which doesn’t perform any specific action.

This class is used when an interaction doesn’t produce a specific response type but still needs to wrap a result value.

Instance Attribute Summary collapse

Attributes inherited from Base

#flash

Instance Method Summary collapse

Methods inherited from Base

#process, #with_flash

Constructor Details

#initialize(result) ⇒ Null

Initializes a new Null response.



15
16
17
18
# File 'lib/plutonium/interaction/response/null.rb', line 15

def initialize(result)
  super()
  @result = result
end

Instance Attribute Details

#resultObject (readonly)



10
11
12
# File 'lib/plutonium/interaction/response/null.rb', line 10

def result
  @result
end