Class: Social::Network::Vk

Inherits:
Base
  • Object
show all
Defined in:
lib/social/network/vk.rb

Instance Attribute Summary

Attributes inherited from Base

#graph

Instance Method Summary collapse

Methods inherited from Base

#config, #method_missing, #param, #params, #params=, #reload_config

Constructor Details

#initialize(params = nil) ⇒ Vk

Returns a new instance of Vk.



18
19
20
# File 'lib/social/network/vk.rb', line 18

def initialize(params = nil)
  super('vk', [ :user, :notification ], params)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Social::Network::Base

Instance Method Details

#rateObject



14
15
16
# File 'lib/social/network/vk.rb', line 14

def rate
  6
end

#safe_config(auth_params = {}) ⇒ Object



8
9
10
11
12
# File 'lib/social/network/vk.rb', line 8

def safe_config(auth_params = {})
  auth_params.merge \
    :app_id         => Social::Network(:vk).config['app_id'],
    :logged_user_id => auth_params['uid']
end

#social_typeObject



4
5
6
# File 'lib/social/network/vk.rb', line 4

def social_type
  :vk
end