Skip to content

Instantly share code, notes, and snippets.

@louishuyng
Created October 21, 2023 05:36
Show Gist options
  • Save louishuyng/6278b7fba91d01e5948225ea062131a3 to your computer and use it in GitHub Desktop.
Save louishuyng/6278b7fba91d01e5948225ea062131a3 to your computer and use it in GitHub Desktop.
Domain Class Using Struct
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