Class: Sistrix::Domain::Pagerank
- Inherits:
-
Object
- Object
- Sistrix::Domain::Pagerank
- Includes:
- Base
- Defined in:
- lib/sistrix/domain/pagerank.rb
Defined Under Namespace
Classes: Record
Instance Attribute Summary collapse
-
#credits ⇒ Object
readonly
Returns the value of attribute credits.
-
#pageranks ⇒ Object
readonly
Returns the value of attribute pageranks.
Instance Method Summary collapse
- #call(options = {}) ⇒ Object
-
#initialize(options = {}) ⇒ Pagerank
constructor
A new instance of Pagerank.
Methods included from Base
#base_uri, #fetch, #method_name
Constructor Details
#initialize(options = {}) ⇒ Pagerank
Returns a new instance of Pagerank.
11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/sistrix/domain/pagerank.rb', line 11 def initialize( = {}) @options = { 'history' => nil, '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.
9 10 11 |
# File 'lib/sistrix/domain/pagerank.rb', line 9 def credits @credits end |
#pageranks ⇒ Object (readonly)
Returns the value of attribute pageranks.
9 10 11 |
# File 'lib/sistrix/domain/pagerank.rb', line 9 def pageranks @pageranks end |