mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
6 lines
235 B
Ruby
6 lines
235 B
Ruby
module Epp::CommandsHelper
|
|
def command_params_for type
|
|
node_set = parsed_frame.css("epp command #{type} #{type}").children.select(&:element?)
|
|
node_set.inject({}) {|hash, obj| hash[obj.name.to_sym] = obj.text;hash }
|
|
end
|
|
end
|