Sha256: a911f5ab887e7c7d0b99fc4689a725944ede70fb2e609bfa5a42d88b99213664
Contents?: true
Size: 639 Bytes
Versions: 53
Compression:
Stored size: 639 Bytes
Contents
class Ey::Core::Client class Real def disable_feature(params={}) feature_id = params["feature"]["id"] account_id = params["account"] request( :method => :delete, :path => "accounts/#{account_id}/features/#{feature_id}", ) end end # Real class Mock def disable_feature(params={}) account_id = params["account"] feature_id = params["feature"]["id"] account = find(:accounts, account_id) feature = find(:features, feature_id) feature["account"] = nil response( :body => nil, :status => 200 ) end end # Mock end
Version data entries
53 entries across 53 versions & 3 rubygems