Class: Social::Network::Graph::Vk::Notification

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

Instance Method Summary collapse

Methods inherited from Base

#config, #http_query, #process, #process_secure

Methods included from Tail

#root=

Instance Method Details

#send(options = {}) {|result| ... } ⇒ Object

Yields:

  • (result)


4
5
6
7
8
9
10
11
12
# File 'lib/social/network/graph/vk/notification.rb', line 4

def send(options = {})
  params = { "method" => 'secure.sendNotification', :uids => options[:uids], :message => options[:message] }
  result = self.process_secure(params)
  
  #result = deliver('method' => 'secure.sendNotification', 'text' => options[:message], 'uid' => options[:uids])
  
  return result unless block_given?
  yield(result) if block_given?
end