Class: ESearchy::Profiling

Inherits:
Object
  • Object
show all
Defined in:
lib/esearchy/profiling.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(people) ⇒ Profiling

Returns a new instance of Profiling.



3
4
5
6
7
# File 'lib/esearchy/profiling.rb', line 3

def initialize(people)
  @peo = people.clone
  @people = []
  @results = []
end

Instance Attribute Details

#peopleObject

Returns the value of attribute people.



8
9
10
# File 'lib/esearchy/profiling.rb', line 8

def people
  @people
end

#resultsObject

Returns the value of attribute results.



8
9
10
# File 'lib/esearchy/profiling.rb', line 8

def results
  @results
end

Instance Method Details

#searchObject



10
11
12
# File 'lib/esearchy/profiling.rb', line 10

def search
  @peo.each { |person, profile| crawl(person, profile) }
end