Skip to content

Instantly share code, notes, and snippets.

View clettenberg's full-sized avatar

Chase Clettenberg clettenberg

View GitHub Profile
@clettenberg
clettenberg / github_api.rb
Created November 16, 2015 04:15
GitHub API Interactor
class GithubApi
attr_reader :token, :api_info, :code
attr_accessor :user
def initialize(code)
@code = code
@token = github.get_token(code).token
create_or_update
end

Keybase proof

I hereby claim:

  • I am cacqw7 on github.
  • I am chasec (https://keybase.io/chasec) on keybase.
  • I have a public key ASDs7TI-V18dvm_lsHXnovXFF3F9KpaKcCa3Xg0UwXmHDgo

To claim this, I am signing this object: