Method: Sistrix::Domain::Social::Top#initialize

Defined in:
lib/sistrix/domain/social/top.rb

#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 = {})
  @options = {
    'domain' => nil,
    'network' => nil,
    'num' => 10,
    'api_key' => Sistrix.config.api_key,
  }.merge(options)

  if Sistrix.config.proxy
    RestClient.proxy = Sistrix.config.proxy
  end
end