lib/lumberg/cpanel/zone_edit.rb
def edit(options = {})
        options[:Line]    = options.delete(:line)
        options[:txtdata] = options.delete(:txt)
        perform_request({ api_function: 'edit_zone_record' }.merge(options))
      end
# Public: Edit an A, CNAME, or TXT record in a zone file, specified by
# line number.  This function works nicely with "show" method to easily
# fetch line number and record information.
#
# options - Hash options for API call params (default: {})
#   :domain - String domain that corresponds to the zone you wish to edit
#   :line - Integer line number of the zone file you wish to edit
#   :type - The type fo record you wish to add to the zone file.
#           Acceptable values include A, CNAME or TXT. Each type of
#           record requires a specific parameter
#   :txt  - String text you wish to contain in your TXT record. Required
#           parameter when you specify "TXT" in the :type parameter
#           (default: '')
#   :cname - String required parameter when you specify CNAME in the
#            :type parameter (default: '')
#   :address - String ip address to map to the subdomain. (default: '')
#   :ttl - Integer time to live in seconds (default: 0)
#   :class - String class to be used for the record. Ordinarily this
#            parameter is not required (default: '')
#
# Returns Hash API response.
Edit an A, CNAME, or TXT record in a zone file, specified by
line number.  This function works nicely with "show" method to easily
fetch line number and record information.

Hash options for API call params (default: {})
:domain - String domain that corresponds to the zone you wish to edit
:line - Integer line number of the zone file you wish to edit
:type - The type fo record you wish to add to the zone file.
Acceptable values include A, CNAME or TXT. Each type of
record requires a specific parameter
:txt  - String text you wish to contain in your TXT record.

Returns Hash API response.
Edit an A CNAME or TXT record in a zone file specified by line number . This function works nicely with " show " method to easily fetch line number and record information . Hash options for API call params ( default : {} ) : domain - String domain that corresponds to the zone you wish to edit : line - Integer line number of the zone file you wish to edit : type - The type fo record you wish to add to the zone file . Acceptable values include A CNAME or TXT . Each type of record requires a specific parameter : txt - String text you wish to contain in your TXT record . Returns Hash API response .
def edit(options = {})
        options[:Line]    = options.delete(:line)
        options[:txtdata] = options.delete(:txt)
        perform_request({ api_function: 'edit_zone_record' }.merge(options))
      end
def edit ( options = { } ) options [ :Line ] = options . delete ( :line ) options [ :txtdata ] = options . delete ( :txt ) perform_request ( { api_function : 'edit_zone_record' } . merge ( options ) ) end
Public: Edit an A, CNAME, or TXT record in a zone file, specified by
line number.
Public : Edit an A CNAME or TXT record in a zone file specified by line number .
options