Class: KonoEppClient::Commands::Poll

Inherits:
Command
  • Object
show all
Defined in:
lib/kono_epp_client/commands/poll.rb

Instance Method Summary collapse

Constructor Details

#initialize(op = :req) ⇒ Poll

Returns a new instance of Poll.



3
4
5
6
7
8
9
10
# File 'lib/kono_epp_client/commands/poll.rb', line 3

def initialize(op = :req)
  super(nil, nil)

  command = root.elements['command']
  poll = command.add_element("poll")

  poll.add_attribute("op", op.to_s)
end

Instance Method Details

#ack_id=(id) ⇒ Object



12
13
14
15
16
# File 'lib/kono_epp_client/commands/poll.rb', line 12

def ack_id=(id)
  poll = root.elements['command/poll']

  poll.add_attribute("msgID", id)
end