class GithubAPI

Public Class Methods

new(username, password) click to toggle source
# File lib/githabit/github_api.rb, line 5
def initialize(username, password)
  @github = Github.new(
    :basic_auth => "#{username}:#{password}"
  )
end

Public Instance Methods

get_user_events(username) click to toggle source
# File lib/githabit/github_api.rb, line 11
def get_user_events(username)
  @github.activity.events.performed(username).body
end