Module: Amountable

Extended by:
ActiveSupport::Autoload
Defined in:
lib/amountable.rb,
lib/amountable/amount.rb,
lib/amountable/version.rb,
lib/amountable/nil_amount.rb,
lib/amountable/operations.rb,
lib/amountable/jsonb_methods.rb,
lib/amountable/table_methods.rb,
lib/amountable/virtual_amount.rb

Overview

Copyright 2015-2017, Instacart

Defined Under Namespace

Modules: ActAsMethod, ClassMethod, InstanceMethods, JsonbMethods, Operations, TableMethods Classes: Amount, InvalidAmountName, MissingColumn, NilAmount, VirtualAmount

Constant Summary collapse

ALLOWED_STORAGE =
%i(table json).freeze
VERSION =
'0.3.2'

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



18
19
20
# File 'lib/amountable.rb', line 18

def self.included(base)
  base.extend Amountable::ActAsMethod
end