summaryrefslogtreecommitdiff
path: root/lib/actor.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/actor.rb')
-rw-r--r--lib/actor.rb21
1 files changed, 0 insertions, 21 deletions
diff --git a/lib/actor.rb b/lib/actor.rb
deleted file mode 100644
index 4e8b3b8..0000000
--- a/lib/actor.rb
+++ /dev/null
@@ -1,21 +0,0 @@
-require_relative 'actor/base'
-require_relative 'actor/key'
-require_relative 'actor/user'
-require_relative 'actor/username'
-
-module Actor
- class UnsupportedActorError < StandardError; end
-
- def self.new_from(str, audit_usernames: false)
- case str
- when Key.id_regex
- Key.from(str, audit_usernames: audit_usernames)
- when User.id_regex
- User.from(str, audit_usernames: audit_usernames)
- when Username.id_regex
- Username.from(str, audit_usernames: audit_usernames)
- else
- raise UnsupportedActorError
- end
- end
-end