# File lib/apipie/extractor/writer.rb, line 47 def ordered_call(call) call = call.stringify_keys ordered_call = OrderedHash.new %w[verb path query request_data response_data code show_in_doc recorded].each do |k| next unless call.has_key?(k) ordered_call[k] = case call[k] when ActiveSupport::HashWithIndifferentAccess JSON.parse(call[k].to_json) # to_hash doesn't work recursively and I'm too lazy to write the recursion:) else call[k] end end return ordered_call end