Module: Calendly::ModelUtils::ClassMethods

Defined in:
lib/calendly/models/model_utils.rb

Instance Method Summary collapse

Instance Method Details

#extract_uuid(str) ⇒ Object



61
62
63
64
65
66
67
68
69
70
# File 'lib/calendly/models/model_utils.rb', line 61

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