Class: Geet::Github::Account
- Inherits:
-
Object
- Object
- Geet::Github::Account
- Defined in:
- lib/geet/github/account.rb
Instance Method Summary collapse
- #authenticated_user ⇒ Object
-
#initialize(api_interface) ⇒ Account
constructor
A new instance of Account.
Constructor Details
#initialize(api_interface) ⇒ Account
Returns a new instance of Account.
6 7 8 |
# File 'lib/geet/github/account.rb', line 6 def initialize(api_interface) @api_interface = api_interface end |
Instance Method Details
#authenticated_user ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/geet/github/account.rb', line 10 def authenticated_user api_path = '/user' response = @api_interface.send_request(api_path) response.fetch('login') end |