Sha256: 6560ad3414b49186bd812cc9dd7765f51a155375e6c948b2dfe50e607ac692e9
Contents?: true
Size: 518 Bytes
Versions: 53
Compression:
Stored size: 518 Bytes
Contents
class Ey::Core::Client class Real def get_addons(params={}) url = params.delete("url") or raise "URL needed" request( :params => params, :url => url, ) end end # Real class Mock def get_addons(params={}) extract_url_params!(params) headers, addons_page = search_and_page(params, :addons, search_keys: %w[account id name]) response( :body => {"addons" => addons_page}, :headers => headers ) end end # Mock end
Version data entries
53 entries across 53 versions & 3 rubygems