Class: Mouth::SuckerConnection

Inherits:
EM::Connection
  • Object
show all
Defined in:
lib/mouth/sucker.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#suckerObject

Returns the value of attribute sucker.



7
8
9
# File 'lib/mouth/sucker.rb', line 7

def sucker
  @sucker
end

Instance Method Details

#receive_data(data) ⇒ Object



9
10
11
12
13
# File 'lib/mouth/sucker.rb', line 9

def receive_data(data)
  Mouth.logger.debug "UDP packet: '#{data}'"
  
  sucker.store!(data)
end