Last active
April 8, 2016 14:40
-
-
Save rusilko/0db8d8b8f439a521c9a2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class BankA | |
module Result3 | |
def self.call(result_1:, result_2:, **kwargs) | |
result_1 - result_2 | |
end | |
end | |
def evaluation_steps | |
{ | |
result_1: ::Defaults::Result1, | |
result_2: ::Defaults::Result2, | |
result_3: ::BankA::Result3, | |
} | |
end | |
end | |
class BankB | |
module Result3 | |
def self.call(result_1:, result_2:, **kwargs) | |
if result_2 > 0 | |
(result_1 - result_2) | |
else | |
result_1 | |
end | |
end | |
end | |
def evaluation_steps | |
{ | |
result_1: ::Defaults::Result1, | |
result_2: ::Defaults::Result2, | |
result_3: ::BankB::Result3, | |
} | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment