Class: KonoEppPoll
- Inherits:
-
KonoEppCommand
- Object
- REXML::Document
- KonoEppCommand
- KonoEppPoll
- Defined in:
- lib/epp/epp_command/poll.rb
Instance Method Summary collapse
- #ack_id=(id) ⇒ Object
-
#initialize(op = :req) ⇒ KonoEppPoll
constructor
A new instance of KonoEppPoll.
Constructor Details
#initialize(op = :req) ⇒ KonoEppPoll
Returns a new instance of KonoEppPoll.
2 3 4 5 6 7 8 9 |
# File 'lib/epp/epp_command/poll.rb', line 2 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
11 12 13 14 15 |
# File 'lib/epp/epp_command/poll.rb', line 11 def ack_id=( id ) poll = root.elements['command/poll'] poll.add_attribute( "msgID", id ) end |