Class: Social::Network::Ok
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(params = nil) ⇒ Ok
constructor
A new instance of Ok.
- #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) ⇒ Ok
Returns a new instance of Ok.
19 20 21 |
# File 'lib/social/network/ok.rb', line 19 def initialize(params = nil) super('ok', [ :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
15 16 17 |
# File 'lib/social/network/ok.rb', line 15 def rate 1 end |
#safe_config(auth_params = {}) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/social/network/ok.rb', line 8 def safe_config(auth_params = {}) auth_params.merge \ :api_server => Social::Network(:ok).config[:api_server], :application_key => Social::Network(:ok).config[:application_key], :logged_user_id => auth_params['uid'] end |
#social_type ⇒ Object
4 5 6 |
# File 'lib/social/network/ok.rb', line 4 def :ok end |