Class: Ronin::Wordlists::CLI::WordlistIndex::Entry Private
- Inherits:
-
Object
- Object
- Ronin::Wordlists::CLI::WordlistIndex::Entry
- Defined in:
- lib/ronin/wordlists/cli/wordlist_index.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Represents an entry in the wordlist index file.
Instance Attribute Summary collapse
-
#categories ⇒ Set<String>
readonly
private
The categories the wordlist belongs to.
-
#name ⇒ String
readonly
private
The name of the wordlist.
-
#summary ⇒ String
readonly
private
A brief summary of the wordlist.
-
#url ⇒ String
readonly
private
The download URL of the wordlist.
Instance Method Summary collapse
-
#initialize(name, url:, summary:, categories: []) ⇒ Entry
constructor
private
Initializes the entry object.
Constructor Details
#initialize(name, url:, summary:, categories: []) ⇒ Entry
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Initializes the entry object.
77 78 79 80 81 82 83 |
# File 'lib/ronin/wordlists/cli/wordlist_index.rb', line 77 def initialize(name, url: , summary: , categories: []) @name = name @url = url @summary = summary @categories = categories.to_set end |
Instance Attribute Details
#categories ⇒ Set<String> (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
The categories the wordlist belongs to.
60 61 62 |
# File 'lib/ronin/wordlists/cli/wordlist_index.rb', line 60 def categories @categories end |
#name ⇒ String (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
The name of the wordlist.
45 46 47 |
# File 'lib/ronin/wordlists/cli/wordlist_index.rb', line 45 def name @name end |
#summary ⇒ String (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
A brief summary of the wordlist.
55 56 57 |
# File 'lib/ronin/wordlists/cli/wordlist_index.rb', line 55 def summary @summary end |
#url ⇒ String (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
The download URL of the wordlist.
50 51 52 |
# File 'lib/ronin/wordlists/cli/wordlist_index.rb', line 50 def url @url end |