Class: Social::Network::Ok

Inherits:
Base
  • Object
show all
Defined in:
lib/social/network/ok.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) ⇒ 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

#rateObject


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_typeObject


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

def social_type
  :ok
end