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

Version Path
ey-core-3.6.4 lib/ey-core/requests/disable_feature.rb
ey-core-3.6.3 lib/ey-core/requests/disable_feature.rb
ey-core-3.6.1 lib/ey-core/requests/disable_feature.rb
groove-ey-core-3.6.3 lib/ey-core/requests/disable_feature.rb
groove-ey-core-3.6.2 lib/ey-core/requests/disable_feature.rb
groove-ey-core-3.6.1 lib/ey-core/requests/disable_feature.rb
ey-core-3.5.0 lib/ey-core/requests/disable_feature.rb
ey-core-3.4.4 lib/ey-core/requests/disable_feature.rb
ey-core-3.4.2 lib/ey-core/requests/disable_feature.rb
ey-core-3.4.1 lib/ey-core/requests/disable_feature.rb
ey-core-3.4.0 lib/ey-core/requests/disable_feature.rb
ey-core-3.3.1 lib/ey-core/requests/disable_feature.rb
ey-core-3.3.0 lib/ey-core/requests/disable_feature.rb
ey-core-3.2.6 lib/ey-core/requests/disable_feature.rb
ey-core-3.2.5 lib/ey-core/requests/disable_feature.rb
ey-core-3.2.4 lib/ey-core/requests/disable_feature.rb
ey-core-3.2.3 lib/ey-core/requests/disable_feature.rb
ey-core-3.2.2 lib/ey-core/requests/disable_feature.rb
ey-core-3.2.1 lib/ey-core/requests/disable_feature.rb
ey-core-3.2.0 lib/ey-core/requests/disable_feature.rb