def record(*args)
      raise 'Not enough arguments' if args.empty?
      raise 'Too many arguments' if args.size > 2

      queue << ['record', *args]
    end
def record(*args)
      raise 'Not enough arguments' if args.empty?
      raise 'Too many arguments' if args.size > 2

      queue << ['record', *args]
    end
Do not instantiate KissmetricsApi yourself, instead mix in Snogmetrics
 and use it's #km method to get an instance of KissmetricsApi.
 The equivalent of the `KM.record` method of the JavaScript API. You can
 pass either an event name, an event name and a hash of properties, or only
 a hash of properties.