Sha256: 235ef754aee02cd05f38662b4f689e2cebe2883f40fb697bc950f9a4da495556
Contents?: true
Size: 683 Bytes
Versions: 54
Compression:
Stored size: 683 Bytes
Contents
class Ey::Core::Client class Real def get_server_events(params={}) query = Ey::Core.paging_parameters(params) url = params.delete("url") request( :params => params, :query => query, :path => "/server-events", :url => url, ) end end # Real class Mock def get_server_events(params={}) extract_url_params!(params) headers, server_events_page = search_and_page(params, :server_events, search_keys: %w[slot server environment]) response( :body => {"server_events" => server_events_page}, :status => 200, :headers => headers ) end end # Mock end
Version data entries
54 entries across 54 versions & 3 rubygems