Sha256: 4a0168d713f5fd74063227c5f719b4ceb18edb105fb45381d7c67720430baa3a
Contents?: true
Size: 453 Bytes
Versions: 8
Compression:
Stored size: 453 Bytes
Contents
# encoding: utf-8 # # Copyright (C) 2011-2012 AdMaster, Inc. module Apimaster::Test module Methods def body last_response.body end def patch(uri, params = {}, env = {}, &block) env = env.merge(:method => "PATCH", :params => params) request(uri, env, &block) end def from_json @response_json ||= JSON.parse(last_response.body) end def to_json(hash) JSON.generate(hash) end end end
Version data entries
8 entries across 8 versions & 1 rubygems