Sha256: 7f141a68031454be1bc71b5338cf00c38775c46d6b930ea80b3c3a0a430985eb
Contents?: true
Size: 751 Bytes
Versions: 3
Compression:
Stored size: 751 Bytes
Contents
class Ey::Core::Client class Real def get_tokens(params={}) query = Ey::Core.paging_parameters(params) url = params.delete("url") request( :params => params, :query => query, :path => "/tokens", :url => url, ) end end class Mock def get_tokens(params={}) extract_url_params!(params) find(:users, resource_identity(params["user"])) params["on_behalf_of"] = params.delete("user") headers, tokens_page = search_and_page(params, :tokens, search_keys: %w(on_behalf_of)) response( :body => {"tokens" => tokens_page}, :status => 200, :headers => headers, ) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ey-core-3.6.6 | lib/ey-core/requests/get_tokens.rb |
ey-core-3.4.5 | lib/ey-core/requests/get_tokens.rb |
ey-core-3.6.5 | lib/ey-core/requests/get_tokens.rb |