Class: Mdm::Enrollment::Profile

Inherits:
Service::Base show all
Defined in:
lib/mdm/enrollment/service/profile.rb

Instance Method Summary collapse

Methods inherited from Service::Base

accepted_params, #authenticate?, available_services, #params, #params=

Instance Method Details

#methodObject



16
17
18
# File 'lib/mdm/enrollment/service/profile.rb', line 16

def method
  :get
end

#pathObject



12
13
14
# File 'lib/mdm/enrollment/service/profile.rb', line 12

def path
  '/profile'
end

#resultObject



20
21
22
23
24
# File 'lib/mdm/enrollment/service/profile.rb', line 20

def result
  {
    profile: @profile.to_json
  }
end

#startObject



7
8
9
10
# File 'lib/mdm/enrollment/service/profile.rb', line 7

def start
  super
  find_or_create_profile
end