Class: Social::Network::Graph::Vk::Notification
- 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
Instance Method Details
#send(options = {}) {|result| ... } ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/social/network/graph/vk/notification.rb', line 4 def send( = {}) params = { "method" => 'secure.sendNotification', :uids => [:uids], :message => [: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 |