Class: Driftrock::Admin::DriftrockModel::DriftrockUser

Inherits:
Object
  • Object
show all
Includes:
Service::DriftrockModel
Defined in:
lib/driftrock-service/driftrock_model/admin/driftrock_user.rb

Class Method Summary collapse

Methods included from Service::DriftrockModel

#get_from_api_method, included, #initialize, #post_to_api_method, #put_to_api_method

Class Method Details

.companies_for(user_id) ⇒ Object



8
9
10
# File 'lib/driftrock-service/driftrock_model/admin/driftrock_user.rb', line 8

def self.companies_for(user_id)
  get_from_api_method.call("/#{user_id}/companies")
end