def member?(*args)
      params   = arguments(args, required: [:org_name, :user]).params
      org_name = arguments.org_name
      user     = arguments.user

      response = if params.delete('public')
                   get_request("/orgs/#{org_name}/public_members/#{user}", params)
                 else
                   get_request("/orgs/#{org_name}/members/#{user}", params)
                 end
      response.status == 204
    rescue Github::Error::NotFound
      false
    end
def member?(*args)
      params   = arguments(args, required: [:org_name, :user]).params
      org_name = arguments.org_name
      user     = arguments.user

      response = if params.delete('public')
                   get_request("/orgs/#{org_name}/public_members/#{user}", params)
                 else
                   get_request("/orgs/#{org_name}/members/#{user}", params)
                 end
      response.status == 204
    rescue Github::Error::NotFound
      false
    end
Check if user is, publicly or privately, a member of an organization

 @example
   github = Github.new
   github.orgs.members.member? 'org-name', 'member-name'

 Check if a user is a public member of an organization

 @example
   github = Github.new
   github.orgs.members.member? 'org-name', 'member-name', public: true

 @api public