Class: DomainsScanner::Results
- Inherits:
-
Object
- Object
- DomainsScanner::Results
- Defined in:
- lib/domains_scanner/results.rb
Instance Attribute Summary collapse
-
#items ⇒ Object
readonly
Returns the value of attribute items.
-
#next_page_link ⇒ Object
readonly
Returns the value of attribute next_page_link.
Instance Method Summary collapse
-
#initialize(results, next_page_link) ⇒ Results
constructor
A new instance of Results.
Constructor Details
#initialize(results, next_page_link) ⇒ Results
Returns a new instance of Results.
7 8 9 10 11 12 |
# File 'lib/domains_scanner/results.rb', line 7 def initialize(results, next_page_link) @items = results.map do |result| ResultItem.new(title: result[:title], url: result[:url]) end @next_page_link = next_page_link end |
Instance Attribute Details
#items ⇒ Object (readonly)
Returns the value of attribute items.
5 6 7 |
# File 'lib/domains_scanner/results.rb', line 5 def items @items end |
#next_page_link ⇒ Object (readonly)
Returns the value of attribute next_page_link.
5 6 7 |
# File 'lib/domains_scanner/results.rb', line 5 def next_page_link @next_page_link end |