Class: SmartyStreets::NativeSerializer

Inherits:
Object
  • Object
show all
Defined in:
lib/smartystreets_ruby_sdk/native_serializer.rb

Instance Method Summary collapse

Instance Method Details

#deserialize(payload) ⇒ Object



9
10
11
# File 'lib/smartystreets_ruby_sdk/native_serializer.rb', line 9

def deserialize(payload)
  JSON.load(payload)
end

#serialize(obj) ⇒ Object



5
6
7
# File 'lib/smartystreets_ruby_sdk/native_serializer.rb', line 5

def serialize(obj)
  obj.to_json
end