Sha256: 5cc5c89bcf0db2e37f5fff81b130d9a5bffc2a0537a8d392db9ba9b305d5a25f
Contents?: true
Size: 431 Bytes
Versions: 4
Compression:
Stored size: 431 Bytes
Contents
# Include this module into your line item implementation to make sure that Payday stays happy # with it, or just make sure that your line item implements the amount method. module Payday module LineItemable # rubocop:todo Style/Documentation # Returns the total amount for this {LineItemable}, or +price * quantity+ def amount return predefined_amount if predefined_amount price * quantity end end end
Version data entries
4 entries across 4 versions & 1 rubygems