Class: Alchemrest::Transforms::MoneyTransform
- Inherits:
-
Morpher::Transform
- Object
- Morpher::Transform
- Alchemrest::Transforms::MoneyTransform
- Defined in:
- lib/alchemrest/transforms/money_transform.rb
Instance Method Summary collapse
Instance Method Details
#call(input) ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/alchemrest/transforms/money_transform.rb', line 10 def call(input) case input when Numeric success(into_money(input)) else failure_error(input) end end |