struct

Money

Inherits Marten::Template::Object < Marten::Template::CanDefineTemplateAttributes < JSON::Serializable < Comparable < Money::Exchange < Money::Formatting < Money::Allocate < Money::Arithmetic < Money::Casting < Struct < Value < Object

"Money is any object or record that is generally accepted as payment for goods and services and repayment of debts in a given socio-economic context or country." - Wikipedia

An instance of Money represents an amount of a specific currency.

Money is a value object and should be treated as immutable.

Instance methods

resolve_template_attribute(key : String)
Source