Module: CuttingEdge::GithubMixin::ClassMethods
- Defined in:
- lib/cutting_edge/repo.rb
Instance Method Summary collapse
Instance Method Details
#headers(auth_token) ⇒ Object
38 39 40 41 42 |
# 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 |