basic structure Base class and Url class
This commit is contained in:
parent
7e2cb3bf94
commit
2a70ba2366
0
README.rdoc
Normal file
0
README.rdoc
Normal file
6
lib/project_honeypot.rb
Normal file
6
lib/project_honeypot.rb
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
module ProjectHoneypot
|
||||||
|
def lookup(api_key, url)
|
||||||
|
searcher = Base.new(api_key)
|
||||||
|
searcher.lookup(url)
|
||||||
|
end
|
||||||
|
end
|
10
lib/project_honeypot/base.rb
Normal file
10
lib/project_honeypot/base.rb
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
class Base
|
||||||
|
def initialize(api_key)
|
||||||
|
@api_key = api_key
|
||||||
|
end
|
||||||
|
|
||||||
|
def lookup(url)
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
4
lib/project_honeypot/url.rb
Normal file
4
lib/project_honeypot/url.rb
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
class Url
|
||||||
|
|
||||||
|
end
|
||||||
|
|
0
lib/spec/base_spec.rb
Normal file
0
lib/spec/base_spec.rb
Normal file
0
lib/spec/url_spec.rb
Normal file
0
lib/spec/url_spec.rb
Normal file
Loading…
x
Reference in New Issue
Block a user