Class: Recruitee::API::Admins
- Inherits:
-
Recruitee::APIResource
- Object
- Recruitee::APIResource
- Recruitee::API::Admins
- Defined in:
- lib/recruitee/api/admins.rb
Instance Attribute Summary
Attributes inherited from Recruitee::APIResource
Instance Method Summary collapse
- #current ⇒ Object
-
#initialize(client) ⇒ Admins
constructor
A new instance of Admins.
Methods inherited from Recruitee::APIResource
#create, #destroy, #find, #list, #resource_name, #resource_url, #update
Constructor Details
Instance Method Details
#current ⇒ Object
15 16 17 18 19 |
# File 'lib/recruitee/api/admins.rb', line 15 def current payload = request(:get, '/admin') initialize_from(payload[resource_name]) end |