Class: RightAws::ActiveSdb::BooleanSerialization

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

Class Method Summary collapse

Class Method Details

.deserialize(string) ⇒ Object



1103
1104
1105
# File 'lib/sdb/active_sdb.rb', line 1103

def deserialize(string)
  string == 'T'
end

.serialize(boolean) ⇒ Object



1099
1100
1101
# File 'lib/sdb/active_sdb.rb', line 1099

def serialize(boolean)
  boolean ? 'T' : 'F'
end