Module: PupilfirstXapi::Actors

Defined in:
lib/pupilfirst_xapi/actors.rb

Class Method Summary collapse

Class Method Details

.agent(actor) ⇒ Object



3
4
5
# File 'lib/pupilfirst_xapi/actors.rb', line 3

def self.agent(actor)
  Xapi.create_agent(agent_type: 'Agent', email: actor.email, name: actor.name)
end