Class: LanGrove::Protocol::Base
- Inherits:
-
Object
- Object
- LanGrove::Protocol::Base
- Defined in:
- lib/langrove/protocol_base.rb
Instance Method Summary collapse
- #decode(data) ⇒ Object
-
#initialize(place_mark_protocol_config, logger) ⇒ Base
constructor
A new instance of Base.
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 |