Class: BigDecimal

Inherits:
Object
  • Object
show all
Defined in:
lib/zenaton/refinements/big_decimal.rb

Overview

Reimplements ‘json/add/bigdecimal`

Class Method Summary collapse

Class Method Details

.from_zenaton(props) ⇒ Object

Parse from simple hash



24
25
26
# File 'lib/zenaton/refinements/big_decimal.rb', line 24

def self.from_zenaton(props)
  BigDecimal._load props['b']
end