Sha256: 77ac94f050e9e1ccc121dac689f0ad9a00fe5e44826fe49f732d9227df8d017e
Contents?: true
Size: 652 Bytes
Versions: 26
Compression:
Stored size: 652 Bytes
Contents
class Ey::Core::Client class Real def get_account_trial(params={}) url = params["url"] request( :url => url, ) end end # Real class Mock def get_account_trial(params={}) account_id = resource_identity(params) find(:accounts, account_id) resource = { "id" => Cistern::Mock.random_numbers(4), "duration" => 500, "used" => 30, "created_at" => Time.now.to_s, "account" => url_for("/accounts/#{account_id}") } response( :body => {"account_trial" => resource}, :status => 200, ) end end end
Version data entries
26 entries across 26 versions & 2 rubygems