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