internetee-registry/app/helpers/epp/commands_helper.rb
2014-06-25 18:12:00 +03:00

6 lines
224 B
Ruby

module Epp::CommandsHelper
def command_params
node_set = parsed_frame.css('epp command create create').children.select(&:element?)
node_set.inject({}) {|hash, obj| hash[obj.name.to_sym] = obj.text;hash }
end
end