module Calendly::ModelUtils::ClassMethods

Public Instance Methods

extract_uuid(str) click to toggle source
# File lib/calendly/models/model_utils.rb, line 57
def extract_uuid(str)
  return unless defined? self::UUID_RE
  return unless str
  return if str.empty?

  m = self::UUID_RE.match str
  return if m.nil?

  m[1]
end