Class: Miteru::Feeds::PhishingDatabase
- Defined in:
- lib/miteru/feeds/phishing_database.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(base_url = "https://raw.githubusercontent.com") ⇒ PhishingDatabase
constructor
A new instance of PhishingDatabase.
- #urls ⇒ Object
Methods inherited from Base
#call, #decomposed_urls, inherited, #source
Methods inherited from Service
Constructor Details
#initialize(base_url = "https://raw.githubusercontent.com") ⇒ PhishingDatabase
Returns a new instance of PhishingDatabase.
6 7 8 |
# File 'lib/miteru/feeds/phishing_database.rb', line 6 def initialize(base_url = "https://raw.githubusercontent.com") super end |
Instance Method Details
#urls ⇒ Object
10 11 12 |
# File 'lib/miteru/feeds/phishing_database.rb', line 10 def urls text.lines.map(&:chomp) end |