Method: MsRest2::Serialization#deserialize

Defined in:
lib/ms_rest2/serialization.rb

#deserialize(mapper, response_body) ⇒ Object

Deserialize the response from the server using the mapper.

Parameters:

  • mapper (Hash)

    Ruby Hash object to represent expected structure of the response_body.

  • response_body (Hash)

    Ruby Hash object to deserialize.

  • object_name (String)

    Name of the deserialized object.



18
19
20
# File 'lib/ms_rest2/serialization.rb', line 18

def deserialize(mapper, response_body)
  build_serializer.deserialize(mapper, response_body)
end