Created
October 21, 2023 05:36
-
-
Save louishuyng/6278b7fba91d01e5948225ea062131a3 to your computer and use it in GitHub Desktop.
Domain Class Using Struct
This file contains 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 Terms < Struct.new( | |
:invoice_due_at, | |
:credit_note, | |
:release, | |
:optional_reminder1, | |
:optional_reminder2 | |
) | |
end | |
Terms.new( | |
invoice_due_at: | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment