Sha256: 67353882f867eccb97c8082f69a39684393e4bb34419b21908287bc51b1bb6be
Contents?: true
Size: 411 Bytes
Versions: 3
Compression:
Stored size: 411 Bytes
Contents
module Hari class Entity module Serialization module Float def self.serialize(value, options = {}) desserialize value, options end def self.desserialize(value, options = {}) return unless value Float value rescue raise SerializationError, "#{options[:name]}:#{value} is not a float" end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
hari-0.0.5 | lib/hari/entity/serialization/float.rb |
hari-0.0.4 | lib/hari/entity/serialization/float.rb |
hari-0.0.3 | lib/hari/entity/serialization/float.rb |