module Firehose
  module Server
    class Message < Struct.new(:payload, :sequence)
      def json_payload
        JSON.parse payload
      end
    end
  end
end

module Firehose
  module Server
    Message = Struct.new(:payload, :sequence) do
      def json_payload
        JSON.parse payload
      end
    end
  end
end

Refactor Firehose::Server::Message to not inherit from new Struct class
Refactor Firehose::Server::Message to not inherit from new Struct class
