Class: RightAws::ActiveSdb::IntegerSerialization
- Inherits:
-
Object
- Object
- RightAws::ActiveSdb::IntegerSerialization
- Defined in:
- lib/zzsharedlib/monkey_patches.rb
Class Method Summary collapse
Class Method Details
.deserialize(string) ⇒ Object
11 12 13 |
# File 'lib/zzsharedlib/monkey_patches.rb', line 11 def deserialize(string) string.to_i end |
.serialize(int) ⇒ Object
5 6 7 8 9 |
# File 'lib/zzsharedlib/monkey_patches.rb', line 5 def serialize(int) str = int.to_s str = str.rjust(12, '0') str end |