samples/client/petstore/ruby/spec/petstore_helper.rb
# helper method to deserialize json string back to object
helper method to deserialize json string back to object
helper method to deserialize json string back to object
def deserialize_json(s, type)
  headers = { 'Content-Type' => 'application/json' }
  response = double('response', headers: headers, body: s)
  API_CLIENT.deserialize(response, type)
end
def deserialize_json ( s , type ) headers = { 'Content-Type' => 'application/json' } response = double ( 'response' , headers : headers , body : s ) API_CLIENT . deserialize ( response , type ) end
helper method to deserialize json string back to object
helper method to deserialize json string back to object
s
<not_specific>
type
<not_specific>