Class: FBGraph::Realtime

Inherits:
Base
  • Object
show all
Defined in:
lib/fbgraph/realtime.rb

Constant Summary

OBJECTS =
%w(user permissions errors).freeze

Instance Attribute Summary

Attributes inherited from Base

#connection_type, #last_result, #logger, #objects

Instance Method Summary (collapse)

Methods inherited from Base

#connection, #debug=, #delete!, #find, #info!, #param, #params, #params=, #publish!, #with_fields

Constructor Details

- (Realtime) initialize(client)

Returns a new instance of Realtime



4
5
6
7
# File 'lib/fbgraph/realtime.rb', line 4

def initialize(client)
  @objects = 'subscriptions'
  super(client)
end

Instance Method Details

- (Object) callback_url(url)



26
27
28
29
# File 'lib/fbgraph/realtime.rb', line 26

def callback_url(url)
  @params[:callback_url] = url
  self
end

- (Object) fields(fs = "email,picture")



21
22
23
24
# File 'lib/fbgraph/realtime.rb', line 21

def fields(fs = "email,picture")
  @params[:fields] = fs
  self
end

- (Object) veryfy_token(token)



31
32
33
34
# File 'lib/fbgraph/realtime.rb', line 31

def veryfy_token(token)
  @params[:veryfy_token] = token
  self
end