lib/github-api-client/user.rb
# Experimental, sets information about GitHub::User or returns authenticated :self
# @param [String] login Login to which post request will be sent
# @param [Hash] options Options to include to a post request
# @option options [Hash] email 'values[email]' => 'test@api.com' - Sets user email to test@api.com if authenticated
# @return [String] Request retrieved data
Experimental, sets information about GitHub::User or returns authenticated :self
Experimental sets information about GitHub :: User or returns authenticated : self
def post(login, options = {})
      if [:self, :me].include? login
        login = self.login
      end
      return GitHub::Browser.post "/user/show/#{login}", options.merge(self.auth_info)
    end
def post ( login , options = { } ) if [ :self , :me ] . include? login login = self . login end return GitHub :: Browser . post "/user/show/#{login}" , options . merge ( self . auth_info ) end
Experimental, sets information about GitHub::User or returns authenticated :self
Experimental sets information about GitHub :: User or returns authenticated : self
Request retrieved data
Request retrieved data
String
login
<not_specific>
options
email 'values[email]' => 'test@api.com' - Sets user email to test@api.com if authenticated
email ' values [ email ] ' = > ' test@api . com ' - Sets user email to test@api . com if authenticated
<not_specific>
options Options to include to a post request
options Options to include to a post request