class Attio::Util::IdExtractor

def extract_for_resource(id, resource_type)

Returns:
  • (String, nil) - The extracted ID

Parameters:
  • resource_type (Symbol) -- The resource type (:record, :webhook, :attribute, etc.)
  • id (String, Hash, nil) -- The ID structure
def extract_for_resource(id, resource_type)
  return nil if id.nil?
  key = resource_key_map[resource_type]
  return id if id.is_a?(String) && key.nil?
  extract(id, key)
end