Sha256: 18b9f128adc1a611130ddfe1ec22557e05bfe550b59fd30aff7b0255ae5395c0

Contents?: true

Size: 320 Bytes

Versions: 17

Compression:

Stored size: 320 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::LineItemable
  # Returns the total amount for this {LineItemable}, or +price * quantity+
  def amount
    price * quantity
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
payday-1.1.3 lib/payday/line_itemable.rb
payday-1.1.2 lib/payday/line_itemable.rb
payday-1.1.1 lib/payday/line_itemable.rb
payday-1.1.0 lib/payday/line_itemable.rb
payday-1.0.5 lib/payday/line_itemable.rb
payday-1.0.4 lib/payday/line_itemable.rb
payday-1.0.3 lib/payday/line_itemable.rb
payday-1.0.2 lib/payday/line_itemable.rb
payday-1.0.1 lib/payday/line_itemable.rb
payday-1.0.0 lib/payday/line_itemable.rb
payday-1.0.0beta8 lib/payday/line_itemable.rb
payday-1.0.0beta7 lib/payday/line_itemable.rb
payday-1.0.0beta6 lib/payday/line_itemable.rb
payday-1.0.0beta5 lib/payday/line_itemable.rb
payday-1.0.0beta4 lib/payday/line_itemable.rb
payday-1.0.0beta3 lib/payday/line_itemable.rb
payday-1.0.0beta2 lib/payday/line_itemable.rb