lib/mailinator_client/rules.rb
# Deletes a specific rule for a Domain.
#
# Authentication:
# The client must be configured with a valid api
# access token to call this action.
#
# Parameters:
# *  {string} domainId - The Domain name or the Domain id
# *  {string} ruleId - The Rule id
#
# Responses:
# *  Status (https://manybrain.github.io/m8rdocs/#delete-rule)
Deletes a specific rule for a Domain.
Authentication:
The client must be configured with a valid api
access token to call this action.

{string} domainId - The Domain name or the Domain id
{string} ruleId - The Rule id

Status
Deletes a specific rule for a Domain . Authentication : The client must be configured with a valid api access token to call this action . { string } domainId - The Domain name or the Domain id { string } ruleId - The Rule id Status
def delete_rule(params = {})
      params = Utils.symbolize_hash_keys(params)
      query_params = { }
      headers = {}
      body = nil
      raise ArgumentError.new("domain id is required") unless params.has_key?(:domainId)
      raise ArgumentError.new("rule id is required") unless params.has_key?(:ruleId)
      path = "/domains/#{params[:domainId]}/rules/#{params[:ruleId]}"
      @client.request(
        method: :delete,
        path: path,
        query: query_params,
        headers: headers,
        body: body)
    end
def delete_rule ( params = { } ) params = Utils . symbolize_hash_keys ( params ) query_params = { } headers = { } body = nil raise ArgumentError . new ( "domain id is required" ) unless params . has_key? ( :domainId ) raise ArgumentError . new ( "rule id is required" ) unless params . has_key? ( :ruleId ) path = "/domains/#{params[:domainId]}/rules/#{params[:ruleId]}" @client . request ( method : :delete , path : path , query : query_params , headers : headers , body : body ) end
Deletes a specific rule for a Domain.
Deletes a specific rule for a Domain .
params