Class: JSONAPI::Consumer::Schema::Types::Decimal

Inherits:
Object
  • Object
show all
Defined in:
lib/jsonapi/consumer/schema.rb

Class Method Summary collapse

Class Method Details

.cast(value, _) ⇒ Object



30
31
32
# File 'lib/jsonapi/consumer/schema.rb', line 30

def self.cast(value, _)
  value.to_d
end