summaryrefslogtreecommitdiff
path: root/lib/nickserver/nicknym/source.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/nickserver/nicknym/source.rb')
-rw-r--r--lib/nickserver/nicknym/source.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/nickserver/nicknym/source.rb b/lib/nickserver/nicknym/source.rb
new file mode 100644
index 0000000..1be0c2a
--- /dev/null
+++ b/lib/nickserver/nicknym/source.rb
@@ -0,0 +1,14 @@
+require 'nickserver/source'
+
+module Nickserver
+ module Nicknym
+ class Source < Nickserver::Source
+
+ def available_for?(domain)
+ status, _body = adapter.get "https://#{domain}/provider.json"
+ status == 200
+ end
+
+ end
+ end
+end