Class: ESearchy::Profiling
- Inherits:
-
Object
- Object
- ESearchy::Profiling
- Defined in:
- lib/esearchy/profiling.rb
Instance Attribute Summary collapse
-
#people ⇒ Object
Returns the value of attribute people.
-
#results ⇒ Object
Returns the value of attribute results.
Instance Method Summary collapse
-
#initialize(people) ⇒ Profiling
constructor
A new instance of Profiling.
- #search ⇒ Object
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
#people ⇒ Object
Returns the value of attribute people.
8 9 10 |
# File 'lib/esearchy/profiling.rb', line 8 def people @people end |
#results ⇒ Object
Returns the value of attribute results.
8 9 10 |
# File 'lib/esearchy/profiling.rb', line 8 def results @results end |
Instance Method Details
#search ⇒ Object
10 11 12 |
# File 'lib/esearchy/profiling.rb', line 10 def search @peo.each { |person, profile| crawl(person, profile) } end |