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



1088
1089
1090
# File 'lib/sdb/active_sdb.rb', line 1088

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

.serialize(boolean) ⇒ Object



1084
1085
1086
# File 'lib/sdb/active_sdb.rb', line 1084

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