Class: BothIsGood::Context::Result
- Inherits:
-
Object
- Object
- BothIsGood::Context::Result
- Includes:
- Names, Memoization
- Defined in:
- lib/both_is_good/context/result.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#primary_result ⇒ Object
readonly
Returns the value of attribute primary_result.
-
#secondary_result ⇒ Object
readonly
Returns the value of attribute secondary_result.
Instance Method Summary collapse
-
#initialize(target:, args:, primary_result:, secondary_result:, names:) ⇒ Result
constructor
A new instance of Result.
Methods included from Names
#class_to_tag, #method_to_tag, #underscore
Methods included from Memoization
Constructor Details
#initialize(target:, args:, primary_result:, secondary_result:, names:) ⇒ Result
Returns a new instance of Result.
9 10 11 12 13 14 15 |
# File 'lib/both_is_good/context/result.rb', line 9 def initialize(target:, args:, primary_result:, secondary_result:, names:) @target = target @args = args @primary_result = primary_result @secondary_result = secondary_result @names = names end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
7 8 9 |
# File 'lib/both_is_good/context/result.rb', line 7 def args @args end |
#primary_result ⇒ Object (readonly)
Returns the value of attribute primary_result.
7 8 9 |
# File 'lib/both_is_good/context/result.rb', line 7 def primary_result @primary_result end |
#secondary_result ⇒ Object (readonly)
Returns the value of attribute secondary_result.
7 8 9 |
# File 'lib/both_is_good/context/result.rb', line 7 def secondary_result @secondary_result end |