class Facebook::Endpoints::User

Constants

ABSOLUTE_PATH

Public Instance Methods

by_id(_id, opts = {}) click to toggle source
# File lib/facebook-client/endpoints/user.rb, line 18
def by_id(_id, opts = {})
  get(_id, opts_to_params(opts), opts)
end
me(opts = {}) click to toggle source
# File lib/facebook-client/endpoints/user.rb, line 14
def me(opts = {})
  by_id('me', opts)
end

Private Instance Methods

opts_to_params(opts) click to toggle source

Put useful params out of the opts

# File lib/facebook-client/endpoints/user.rb, line 26
def opts_to_params(opts)
  params = {}
  params['fields'] = opts[:fields].map(&:to_s).join(',') if opts[:fields]
  params
end