Class: Social::Network::Graph::Ok::Notification

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

Instance Method Summary collapse

Methods inherited from Base

#build_request_params, #build_sig, #config, #deliver, #http_query, #normalize_msg

Methods included from Tail

#root=

Instance Method Details

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

Yields:

  • (result)


4
5
6
7
8
9
# File 'lib/social/network/graph/ok/notification.rb', line 4

def send(options = {})
  result = deliver('method' => 'notifications.sendSimple', 'text' => options[:message], 'uid' => options[:uids])
  
  return result unless block_given?
  yield(result) if block_given?
end