lib/ultradns/api/rrset.rb
def update(ttl, rdata = nil)
    rrset = {}
    rrset[:ttl] = ttl if ttl != nil
    rrset[:rdata] = (rdata.kind_of?(Array) ? rdata : [rdata]) if rdata != nil

    client.with_auth_retry {|c| c.patch rrset_path, request_options({body: rrset.to_json}) }
  end
# (Partially) Updates an existing RRSet for this rtype and owner_name in this zone
#
# === Required Parameters
#
# * +ttl+ - The updated TTL value for the RRSet.
# * +rdata+ - The updated BIND data for the RRSet as a string.
#             If there is a single resource record in the RRSet, you can pass in the single string or an array with a single element.
#             If there are multiple resource records in this RRSet, pass in a list of strings.
#                                                                                                                                                                                                                #
# === Examples
#
#     c.update('zone.invalid.', "A", "foo", 100, ["10.20.30.40"])
(Partially) Updates an existing RRSet for this rtype and owner_name in this zone
Required Parameters

+ttl+ - The updated TTL value for the RRSet.
+rdata+ - The updated BIND data for the RRSet as a string.
If there is a single resource record in the RRSet, you can pass in the single string or an array with a single element.
If there are multiple resource records in this RRSet, pass in a list of strings.

Examples


( Partially ) Updates an existing RRSet for this rtype and owner_name in this zone Required Parameters + ttl + - The updated TTL value for the RRSet . + rdata + - The updated BIND data for the RRSet as a string . If there is a single resource record in the RRSet you can pass in the single string or an array with a single element . If there are multiple resource records in this RRSet pass in a list of strings . Examples
def update(ttl, rdata = nil)
    rrset = {}
    rrset[:ttl] = ttl if ttl != nil
    rrset[:rdata] = (rdata.kind_of?(Array) ? rdata : [rdata]) if rdata != nil
    client.with_auth_retry {|c| c.patch rrset_path, request_options({body: rrset.to_json}) }
  end
def update ( ttl , rdata = nil ) rrset = { } rrset [ :ttl ] = ttl if ttl != nil rrset [ :rdata ] = ( rdata . kind_of? ( Array ) ? rdata : [ rdata ] ) if rdata != nil client . with_auth_retry { | c | c . patch rrset_path , request_options ( { body : rrset . to_json } ) } end
(Partially) Updates an existing RRSet for this rtype and owner_name in this zone
 Required Parameters
( Partially ) Updates an existing RRSet for this rtype and owner_name in this zone Required Parameters
ttl
rdata