Class: Plutonium::Interaction::Response::Null
- 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
-
#result ⇒ Object
readonly
The result value wrapped by this null response.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(result) ⇒ Null
constructor
Initializes a new Null response.
Methods inherited from Base
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
#result ⇒ Object (readonly)
10 11 12 |
# File 'lib/plutonium/interaction/response/null.rb', line 10 def result @result end |