Class: EventMachine::Udns::Query

Inherits:
Object
  • Object
show all
Defined in:
ext/em-udns.c,
lib/em-udns/query.rb

Instance Method Summary collapse

Instance Method Details

#callback(&block) ⇒ Object



4
5
6
# File 'lib/em-udns/query.rb', line 4

def callback &block
  @on_success_block = block
end

#errback(&block) ⇒ Object



8
9
10
# File 'lib/em-udns/query.rb', line 8

def errback &block
  @on_error_block = block
end