Class: BothIsGood::Context::Result

Inherits:
Object
  • Object
show all
Includes:
Names, Memoization
Defined in:
lib/both_is_good/context/result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Names

#class_to_tag, #method_to_tag, #underscore

Methods included from Memoization

included

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

#argsObject (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_resultObject (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_resultObject (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