Class: NexaasID::Resources::Profile
- Defined in:
- lib/nexaas_id/resources/profile.rb
Overview
A wrapper to Nexaas ID’s profile API
- API
-
Documentation:
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#contacts ⇒ NexaasID::Entities::Profile::Contacts
Retrieves the user’s contacts.
-
#emails ⇒ NexaasID::Entities::Profile::Emails
Retrieves the user’s emails.
-
#get ⇒ NexaasID::Entities::Profile
Retrieves the user’s profile.
-
#professional_info ⇒ NexaasID::Entities::Profile::ProfessionalInfo
Retrieves the user’s professional info.
Methods inherited from Base
Constructor Details
This class inherits a constructor from NexaasID::Resources::Base
Instance Method Details
#contacts ⇒ NexaasID::Entities::Profile::Contacts
Retrieves the user’s contacts
- API
-
Method:
GET /api/v1/profile/contactsDocumentation:
50 51 52 53 |
# File 'lib/nexaas_id/resources/profile.rb', line 50 def contacts respond_with_entity(api.get('/api/v1/profile/contacts'), NexaasID::Entities::Profile::Contacts) end |
#emails ⇒ NexaasID::Entities::Profile::Emails
Retrieves the user’s emails
- API
-
Method:
GET /api/v1/profile/emailsDocumentation:
63 64 65 66 |
# File 'lib/nexaas_id/resources/profile.rb', line 63 def emails respond_with_entity(api.get('/api/v1/profile/emails'), NexaasID::Entities::Profile::Emails) end |
#get ⇒ NexaasID::Entities::Profile
Retrieves the user’s profile
- API
-
Method:
GET /api/v1/profileDocumentation:
25 26 27 |
# File 'lib/nexaas_id/resources/profile.rb', line 25 def get respond_with_entity(api.get('/api/v1/profile')) end |
#professional_info ⇒ NexaasID::Entities::Profile::ProfessionalInfo
Retrieves the user’s professional info
- API
-
Method:
GET /api/v1/profile/professional_infoDocumentation:
37 38 39 40 |
# File 'lib/nexaas_id/resources/profile.rb', line 37 def professional_info respond_with_entity(api.get('/api/v1/profile/professional_info'), NexaasID::Entities::Profile::ProfessionalInfo) end |