Method: Lightstreamer::SubscriptionItemData#process_new_command_data
- Defined in:
- lib/lightstreamer/subscription_item_data.rb
#process_new_command_data(new_data) ⇒ Object
Processes new data for the :command subscription mode.
28 29 30 31 32 33 34 35 |
# File 'lib/lightstreamer/subscription_item_data.rb', line 28 def process_new_command_data(new_data) @data ||= [] key = row_key new_data command = new_data.delete(:command) || new_data.delete('command') send "process_#{command.to_s.downcase}_command", key, new_data end |