Sha256: 95a39faa3912c3d21ec62d8f942e67c4a7a04f38603eca833a6c64d9c9e83dc0
Contents?: true
Size: 558 Bytes
Versions: 53
Compression:
Stored size: 558 Bytes
Contents
class Ey::Core::Client class Real def get_account(params={}) id = params["id"] url = params["url"] request( :path => "accounts/#{id}", :url => url, ) end end # Real class Mock def get_account(params={}) identity = resource_identity(params) account = self.find(:accounts, identity) resource = account.dup resource.delete(:users) resource.delete(:owners) response( :body => {"account" => resource}, ) end end # Mock end # Ey::Core::Client
Version data entries
53 entries across 53 versions & 3 rubygems