mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 10:19:45 +02:00
Basic domain check command implementation
This commit is contained in:
parent
f8757891ef
commit
cd52da3f8f
8 changed files with 49 additions and 9 deletions
|
@ -1,6 +1,6 @@
|
|||
module Epp::CommandsHelper
|
||||
def command_params
|
||||
node_set = parsed_frame.css('epp command create create').children.select(&:element?)
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue