Class: Githubris::API
- Inherits:
-
Object
- Object
- Githubris::API
- Defined in:
- lib/githubris/api.rb
Defined Under Namespace
Constant Summary
Constants included from User
Constants included from Gist
Instance Method Summary collapse
- #authenticate!(options = {}) ⇒ Object
-
#initialize ⇒ API
constructor
A new instance of API.
Methods included from User
Methods included from Gist
#get_public_gists, #get_user_public_gists
Constructor Details
#initialize ⇒ API
Returns a new instance of API.
15 16 17 |
# File 'lib/githubris/api.rb', line 15 def initialize @builder = Githubris::Builder.new end |
Instance Method Details
#authenticate!(options = {}) ⇒ Object
19 20 21 |
# File 'lib/githubris/api.rb', line 19 def authenticate!(={}) Githubris::API.basic_auth [:login], [:password] end |