module WorkOS::Portal

The Portal module provides resource methods for working with the Admin Portal product

Constants

Public Class Methods

Private Class Methods

validate_intent(intent) click to toggle source
# File lib/workos/portal.rb, line 55
def validate_intent(intent)
  return if GENERATE_LINK_INTENTS.include?(intent)

  raise ArgumentError, "#{intent} is not a valid value." \
  " `intent` must be in #{GENERATE_LINK_INTENTS}"
end