Sha256: 43ce5ab157236b3772cae8cebafab2f4d67d29f715e1b15334ee40b337436acf
Contents?: true
Size: 651 Bytes
Versions: 53
Compression:
Stored size: 651 Bytes
Contents
class Ey::Core::Client class Real def get_components(params={}) query = Ey::Core.paging_parameters(params) url = params.delete("url") request( :params => params, :query => query, :path => "/components", :url => url, ) end end # Real class Mock def get_components(params={}) extract_url_params!(params) headers, components_page = search_and_page(params, :components, search_keys: %w[name id uri]) response( :body => {"components" => components_page}, :status => 200, :headers => headers ) end end # Mock end
Version data entries
53 entries across 53 versions & 3 rubygems