module CuttingEdge::GithubMixin::ClassMethods
Public Instance Methods
headers(auth_token)
click to toggle source
# File lib/cutting_edge/repo.rb, line 38 def headers(auth_token) headers = {:accept => 'application/vnd.github.v3.raw'} headers[:authorization] = "token #{auth_token}" if auth_token headers end