Method: Worldline::Acquiring::SDK::JSON::Marshaller#unmarshal

Defined in:
lib/worldline/acquiring/sdk/json/marshaller.rb

#unmarshal(response_json, type) ⇒ Object

Unmarshals a JSON string into an object of type type. The new object is initialized by calling .new_from_hash with contents of the JSON as a Hash object.

Parameters:

  • response_json (String)

    The JSON to unmarshal

  • type (Type)

    The class of the object that will be instantiated using type.new_from_hash

Returns:

  • The JSON unmarshalled to the given type

Raises:

  • (NotImplementedError)


22
23
24
# File 'lib/worldline/acquiring/sdk/json/marshaller.rb', line 22

def unmarshal(response_json, type)
  raise NotImplementedError
end