Class: Radiator::Type::Amount

Inherits:
Hive::Type::Amount
  • Object
show all
Defined in:
lib/radiator/type/amount.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Amount

Returns a new instance of Amount.



5
6
7
8
9
10
11
12
# File 'lib/radiator/type/amount.rb', line 5

def initialize(options = {})
  unless defined? @@deprecated_warning_shown
    warn "[DEPRECATED] Using Radiator::Type::Amount class provided is deprecated.  Please use: Hive::Type::Amount"
    @@deprecated_warning_shown = true
    
    super(options.merge(chain: :hive))
  end
end