module Bobot::User

Public Class Methods

get_profile(query:) click to toggle source
# File lib/bobot/user.rb, line 5
def get_profile(query:)
  graph_get "/#{query.fetch(:fb_id)}", query: {
    fields: query.fetch(:fields).join(','),
    access_token: query.fetch(:access_token),
  }
end

Private Instance Methods

get_profile(query:) click to toggle source
# File lib/bobot/user.rb, line 5
def get_profile(query:)
  graph_get "/#{query.fetch(:fb_id)}", query: {
    fields: query.fetch(:fields).join(','),
    access_token: query.fetch(:access_token),
  }
end