lib/fb/user.rb in fb-auth-0.1.0 vs lib/fb/user.rb in fb-auth-0.1.1
- old
+ new
@@ -23,11 +23,14 @@
def pages
@pages ||= begin
response_body = Fb::Request.new(path: '/me/accounts',
params: {access_token: @access_token}).run
response_body["data"].map do |page_data|
- Fb::Page.new page_data
+ Fb::Page.new page_data.merge('user' => self)
end
end
end
+
+ private
+ attr_reader :access_token
end
end