Sha256: fd10411b1ca6b42b26674ba588b8bb7348bcf34aa9f0d28b602d7cc600ca3f7b
Contents?: true
Size: 569 Bytes
Versions: 54
Compression:
Stored size: 569 Bytes
Contents
class Ey::Core::Client class Real def update_billing(params={}) id = params.delete("id") or raise "ID needed" request( :method => :put, :path => "/accounts/#{id}/billing", :params => params, ) end end # Real class Mock def update_billing(params={}) id = params["id"] state = params["state"] self.find(:accounts, id) self.data[:billing][id] = state response( :body => {"billing" => {"id" => id, "state" => state}}, ) end end # Mock end # Ey::Core::Client
Version data entries
54 entries across 54 versions & 3 rubygems