Class: Transcriber::Resource::Serialization::Float
- Inherits:
-
Object
- Object
- Transcriber::Resource::Serialization::Float
- Defined in:
- lib/transcriber/resource/serialization/float.rb
Class Method Summary collapse
Class Method Details
.desserialize(value) ⇒ Object
11 12 13 14 15 |
# File 'lib/transcriber/resource/serialization/float.rb', line 11 def self.desserialize(value) Float(value) rescue ArgumentError raise "value not desserializable: #{value}" end |
.serialize(value) ⇒ Object
5 6 7 8 9 |
# File 'lib/transcriber/resource/serialization/float.rb', line 5 def self.serialize(value) Float(value) rescue ArgumentError raise "value not serializable: #{value}" end |