Sha256: aac26f5c7e435fe6ef6e83c84d88e07f024e743a0fa8f77e9fe11a2def41e696
Contents?: true
Size: 283 Bytes
Versions: 17
Compression:
Stored size: 283 Bytes
Contents
module Intercom module RequiresParameters def requires_parameters(parameters, required) missing = Array(required) - parameters.keys.map(&:to_s) raise ArgumentError.new("Missing required parameters (#{missing.join(', ')}).") unless missing.empty? end end end
Version data entries
17 entries across 17 versions & 1 rubygems