Class: FbRails::Fb

Inherits:
Object
  • Object
show all
Defined in:
lib/fb_rails/fb.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cookies) ⇒ Fb

Returns a new instance of Fb.



7
8
9
# File 'lib/fb_rails/fb.rb', line 7

def initialize(cookies)
  @cookies = cookies
end

Instance Attribute Details

#cookiesObject (readonly)

Returns the value of attribute cookies.



6
7
8
# File 'lib/fb_rails/fb.rb', line 6

def cookies
  @cookies
end

Instance Method Details

#graphObject



11
12
13
# File 'lib/fb_rails/fb.rb', line 11

def graph
  @graph ||= FbRails::Graph.new(connect.access_token)
end