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