Class: Recruitee::API::Admins

Inherits:
Recruitee::APIResource show all
Defined in:
lib/recruitee/api/admins.rb

Instance Attribute Summary

Attributes inherited from Recruitee::APIResource

#client, #resource_klass

Instance Method Summary collapse

Methods inherited from Recruitee::APIResource

#create, #destroy, #find, #list, #resource_name, #resource_url, #update

Constructor Details

#initialize(client) ⇒ Admins

Returns a new instance of Admins.



11
12
13
# File 'lib/recruitee/api/admins.rb', line 11

def initialize(client)
  super(client, Admin)
end

Instance Method Details

#currentObject



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