Class: ESearchy::Search
- Inherits:
-
Object
show all
- Defined in:
- lib/esearchy/esearchy.rb
Defined Under Namespace
Modules: MetaType
Classes: Emails, People
Constant Summary
collapse
- EMAIL_ENGINES =
{
:Google => ESearchy::SearchEngines::Google,
:Bing => ESearchy::SearchEngines::Bing,
:Yahoo => ESearchy::SearchEngines::Yahoo,
:Altavista => ESearchy::SearchEngines::Altavista,
:PGP => ESearchy::OtherEngines::PGP,
:Spider => ESearchy::OtherEngines::Spider,
:Usenet => ESearchy::OtherEngines::Usenet,
:GoogleGroups => ESearchy::OtherEngines::GoogleGroups
}
- PEOPLE_ENGINES =
{
:LinkedIn => ESearchy::SocialEngines::LinkedIn,
:GoogleProfiles => ESearchy::SocialEngines::GoogleProfiles,
:Naymz => ESearchy::SocialEngines::Naymz,
:Classmates => ESearchy::SocialEngines::Classmates,
:Spoke => ESearchy::SocialEngines::Spoke,
:JigSaw => ESearchy::SocialEngines::JigSaw,
:Ziggs => ESearchy::SocialEngines::Ziggs,
:Plaxo => ESearchy::SocialEngines::Plaxo
}
Class Method Summary
collapse
Instance Method Summary
collapse
Constructor Details
#initialize(args, &block) ⇒ Search
Returns a new instance of Search.
47
48
49
50
51
52
53
54
55
56
57
58
|
# File 'lib/esearchy/esearchy.rb', line 47
def initialize(args, &block)
@@query = args[:query] || nil
@@company = args[:company] || nil
@@maxhits = args[:maxhits] || nil
@@start_at = args[:start_at] || nil
@@website = args[:website] || nil
ESearchy.log = args[:log] if args[:log]
$emails = []
$people = []
$results = []
block.call(self) if block_given?
end
|
Class Method Details
.company ⇒ Object
70
71
72
|
# File 'lib/esearchy/esearchy.rb', line 70
def self.company
@@company
end
|
.maxhits ⇒ Object
78
79
80
|
# File 'lib/esearchy/esearchy.rb', line 78
def self.maxhits
@@maxhits
end
|
.query ⇒ Object
66
67
68
|
# File 'lib/esearchy/esearchy.rb', line 66
def self.query
@@query
end
|
.website ⇒ Object
74
75
76
|
# File 'lib/esearchy/esearchy.rb', line 74
def self.website
@@website
end
|
Instance Method Details
#Emails(*args, &block) ⇒ Object
98
99
100
|
# File 'lib/esearchy/esearchy.rb', line 98
def Emails(*args, &block)
Emails.new(*args, &block)
end
|
#emails ⇒ Object
86
87
88
|
# File 'lib/esearchy/esearchy.rb', line 86
def emails
$emails
end
|
#maxhits ⇒ Object
82
83
84
|
# File 'lib/esearchy/esearchy.rb', line 82
def maxhits
@@maxhits
end
|
#people ⇒ Object
90
91
92
|
# File 'lib/esearchy/esearchy.rb', line 90
def people
$people
end
|
#People(*args, &block) ⇒ Object
102
103
104
|
# File 'lib/esearchy/esearchy.rb', line 102
def People(*args, &block)
People.new(*args, &block)
end
|
#results ⇒ Object
94
95
96
|
# File 'lib/esearchy/esearchy.rb', line 94
def results
$results
end
|
#start(&block) ⇒ Object
60
61
62
|
# File 'lib/esearchy/esearchy.rb', line 60
def start(&block)
block.call(self)
end
|