Module: Sistrix
- Defined in:
- lib/sistrix.rb,
lib/sistrix/base.rb,
lib/sistrix/config.rb,
lib/sistrix/domain.rb,
lib/sistrix/record.rb,
lib/sistrix/credits.rb,
lib/sistrix/keyword.rb,
lib/sistrix/domain/age.rb,
lib/sistrix/keyword/us.rb,
lib/sistrix/links/list.rb,
lib/sistrix/keyword/sem.rb,
lib/sistrix/keyword/seo.rb,
lib/sistrix/domain/pages.rb,
lib/sistrix/links/overview.rb,
lib/sistrix/domain/overview.rb,
lib/sistrix/domain/pagerank.rb,
lib/sistrix/links/linktexts.rb,
lib/sistrix/domain/social/top.rb,
lib/sistrix/domain/social/url.rb,
lib/sistrix/keyword/domain/us.rb,
lib/sistrix/links/linktargets.rb,
lib/sistrix/monitoring/report.rb,
lib/sistrix/domain/kwcount/sem.rb,
lib/sistrix/domain/kwcount/seo.rb,
lib/sistrix/keyword/domain/sem.rb,
lib/sistrix/keyword/domain/seo.rb,
lib/sistrix/monitoring/folders.rb,
lib/sistrix/monitoring/reports.rb,
lib/sistrix/monitoring/projects.rb,
lib/sistrix/domain/social/latest.rb,
lib/sistrix/domain/competitors/us.rb,
lib/sistrix/domain/competitors/sem.rb,
lib/sistrix/domain/competitors/seo.rb,
lib/sistrix/domain/social/overview.rb,
lib/sistrix/domain/sichtbarkeitsindex.rb,
lib/sistrix/monitoring/report/download.rb
Defined Under Namespace
Modules: Base, Record
Classes: ArgumentException, Config, Credits, Domain, Keyword, Links, Monitoring
Constant Summary
collapse
- SERVICE_HOST =
'api.sistrix.net'
Class Method Summary
collapse
Class Method Details
.config ⇒ Object
9
10
11
12
13
14
|
# File 'lib/sistrix/config.rb', line 9
def self.config
if block_given?
yield Config.instance
end
Config.instance
end
|
.method_missing(sym, *args, &block) ⇒ Object
7
8
9
10
11
12
13
14
|
# File 'lib/sistrix.rb', line 7
def self.method_missing(sym, *args, &block)
clazz_name = 'Sistrix::' + sym.to_s.split(/_/).map { |w| w[0].upcase + w[1..w.length] }.join('::')
lib_name = 'sistrix/' + sym.to_s.gsub(/_/, '/')
require lib_name
clazz = class_from_string(clazz_name)
return clazz.new(args[0]).call
end
|