Class: Sistrix::Domain
- Inherits:
-
Object
- Object
- Sistrix::Domain
- Includes:
- Base
- Defined in:
- lib/sistrix/domain.rb,
lib/sistrix/domain/age.rb,
lib/sistrix/domain/pages.rb,
lib/sistrix/domain/overview.rb,
lib/sistrix/domain/pagerank.rb,
lib/sistrix/domain/social/top.rb,
lib/sistrix/domain/social/url.rb,
lib/sistrix/domain/kwcount/sem.rb,
lib/sistrix/domain/kwcount/seo.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
Defined Under Namespace
Modules: Social Classes: Age, Competitors, Kwcount, Overview, Pagerank, Pages, Record, Sichtbarkeitsindex
Instance Attribute Summary collapse
-
#credits ⇒ Object
readonly
Returns the value of attribute credits.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #call(options = {}) ⇒ Object
-
#initialize(options = {}) ⇒ Domain
constructor
A new instance of Domain.
Methods included from Base
#base_uri, #fetch, #method_name
Constructor Details
#initialize(options = {}) ⇒ Domain
Returns a new instance of Domain.
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/sistrix/domain.rb', line 10 def initialize( = {}) @options = { 'domain' => nil, 'api_key' => Sistrix.config.api_key, }.merge() if Sistrix.config.proxy RestClient.proxy = Sistrix.config.proxy end end |
Instance Attribute Details
#credits ⇒ Object (readonly)
Returns the value of attribute credits.
8 9 10 |
# File 'lib/sistrix/domain.rb', line 8 def credits @credits end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
8 9 10 |
# File 'lib/sistrix/domain.rb', line 8 def @options end |