Method: Worldline::Acquiring::SDK::JSON::DefaultMarshaller#marshal

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

#marshal(request_object) ⇒ Object

Marshals the request_object to a JSON string using request_object#to_h



15
16
17
# File 'lib/worldline/acquiring/sdk/json/default_marshaller.rb', line 15

def marshal(request_object)
  ::JSON.pretty_generate(request_object.to_h)
end