class CommandHandler
Public Instance Methods
handle(type, payload)
click to toggle source
# File lib/command_handler.rb, line 4 def handle(type, payload) case type when :FetchData uri = URI('https://www.onet.pl/') [:DataFetched, data: Net::HTTP.get(uri).force_encoding("UTF-8")] end end