Class: Mdm::Enrollment::Account

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

Instance Method Summary collapse

Methods inherited from Service::Base

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

Instance Method Details

#methodObject



11
12
13
# File 'lib/mdm/enrollment/service/account.rb', line 11

def method
  :get
end

#pathObject



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

def path
  '/account'
end

#resultObject



15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/mdm/enrollment/service/account.rb', line 15

def result
  {
    server_name: client.response['server_name'],
    server_uuid: client.response['server_uuid'],
    facilitator_id: client.response['facilitator_id'],
    admin_id: client.response['admin_id'],
    org_name: client.response['org_name'],
    org_email: client.response['org_email'],
    org_phone: client.response['org_phone'],
    org_address: client.response['org_address'],
  }
end