Class: RightAws::ActiveSdb::IntegerSerialization

Inherits:
Object
  • Object
show all
Defined in:
lib/sdb/active_sdb.rb

Class Method Summary collapse

Class Method Details

.deserialize(string) ⇒ Object



1115
1116
1117
# File 'lib/sdb/active_sdb.rb', line 1115

def deserialize(string)
  string.to_i
end

.serialize(int) ⇒ Object



1111
1112
1113
# File 'lib/sdb/active_sdb.rb', line 1111

def serialize(int)
  int.to_s
end