Sha256: c9d04b13f6cfbf5c99cc3e15772f1f88cb0c1d69edd5dbbd2dbfecebe1dde0e9
Contents?: true
Size: 304 Bytes
Versions: 5
Compression:
Stored size: 304 Bytes
Contents
# frozen_string_literal: true module Loco module WsConnectionIdentifier module_function def call(resource) case resource when String then resource when Class then resource.name.downcase else "#{resource.class.name.downcase}:#{resource.id}" end end end end
Version data entries
5 entries across 5 versions & 1 rubygems