Class: Social::Network::Vk
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(params = nil) ⇒ Vk
constructor
A new instance of Vk.
- #rate ⇒ Object
- #safe_config(auth_params = {}) ⇒ Object
- #social_type ⇒ Object
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
#rate ⇒ Object
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_type ⇒ Object
4 5 6 |
# File 'lib/social/network/vk.rb', line 4 def :vk end |