Class: LanGrove::Protocol::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/langrove/protocol_base.rb

Instance Method Summary collapse

Constructor Details

#initialize(place_mark_protocol_config, logger) ⇒ Base

Returns a new instance of Base.



7
8
9
10
11
# File 'lib/langrove/protocol_base.rb', line 7

def initialize( place_mark_protocol_config, logger )
  
  @logger = logger
  
end

Instance Method Details

#decode(data) ⇒ Object



13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/langrove/protocol_base.rb', line 13

def decode( data )
  
  #
  # OVERRIDE 
  #
  # To decode the data ahead of passing it
  # into the <Handler>.receive() function.
  #
  
  {
    
    :data => data
    
  }
  
end