Class: DomainsScanner::Results

Inherits:
Object
  • Object
show all
Defined in:
lib/domains_scanner/results.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#itemsObject (readonly)

Returns the value of attribute items.



5
6
7
# File 'lib/domains_scanner/results.rb', line 5

def items
  @items
end

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