# File lib/fog/softlayer/requests/dns/update_record.rb, line 12 def update_record(record_id, opts) # Get the domain @domain = @softlayer_domains.each do |domain| if domain[:id].to_i == opts[:domainId] domain end end # Get the record @domain.first[:resourceRecords].each do |record| if record["id"].to_i == record_id.to_i @domain.first[:serial] = (@domain.first[:serial] + 1) @record = record end end # Update the data # ps: Separated the update to make easier future refator @record["data"] = opts[:data] @record["host"] = opts[:host] @record["type"] = opts[:type] response = Excon::Response.new response.body = @domain response.status = 200 return response end