Method: FbGraph::AdUser#fetch

Defined in:
lib/fb_graph/ad_user.rb

#fetch(options = {}) ⇒ Object

FbGraph::User#fetch does not retrieve the permissions and roles since they are outside the normal attributes for an FbGraph::User, so we just copy them over from this object before returning the fetched one.



51
52
53
54
55
56
# File 'lib/fb_graph/ad_user.rb', line 51

def fetch(options = {})
  super(options).tap do |fetched|
    fetched.role = role
    fetched.permissions = permissions
  end
end