Class: Twilio::REST::PreviewIam::Versionless::OrganizationContext::UserList::ScimUser
- Inherits:
-
Object
- Object
- Twilio::REST::PreviewIam::Versionless::OrganizationContext::UserList::ScimUser
- Defined in:
- lib/twilio-ruby/rest/preview_iam/versionless/organization/user.rb
Instance Attribute Summary collapse
- #active ⇒ Object
- #code ⇒ Object
- #detail ⇒ Object
- #display_name ⇒ Object
- #emails ⇒ Object
- #external_id ⇒ Object
- #id ⇒ Object
- #locale ⇒ Object
- #meta ⇒ Object
- #more_info ⇒ Object
- #name ⇒ Object
- #schemas ⇒ Object
- #scim_type ⇒ Object
- #status ⇒ Object
- #timezone ⇒ Object
- #user_name ⇒ Object
Instance Method Summary collapse
-
#initialize(payload) ⇒ ScimUser
constructor
A new instance of ScimUser.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ ScimUser
Returns a new instance of ScimUser.
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
# File 'lib/twilio-ruby/rest/preview_iam/versionless/organization/user.rb', line 42 def initialize(payload) @id = payload["id"] @external_id = payload["external_id"] @user_name = payload["user_name"] @display_name = payload["display_name"] @name = payload["name"] @emails = payload["emails"] @active = payload["active"] @locale = payload["locale"] @timezone = payload["timezone"] @schemas = payload["schemas"] @meta = payload["meta"] @detail = payload["detail"] @scim_type = payload["scim_type"] @status = payload["status"] @code = payload["code"] @more_info = payload["more_info"] end |
Instance Attribute Details
#active ⇒ Object
41 42 43 |
# File 'lib/twilio-ruby/rest/preview_iam/versionless/organization/user.rb', line 41 def active @active end |
#code ⇒ Object
41 42 43 |
# File 'lib/twilio-ruby/rest/preview_iam/versionless/organization/user.rb', line 41 def code @code end |
#detail ⇒ Object
41 42 43 |
# File 'lib/twilio-ruby/rest/preview_iam/versionless/organization/user.rb', line 41 def detail @detail end |
#display_name ⇒ Object
41 42 43 |
# File 'lib/twilio-ruby/rest/preview_iam/versionless/organization/user.rb', line 41 def display_name @display_name end |
#emails ⇒ Object
41 42 43 |
# File 'lib/twilio-ruby/rest/preview_iam/versionless/organization/user.rb', line 41 def emails @emails end |
#external_id ⇒ Object
41 42 43 |
# File 'lib/twilio-ruby/rest/preview_iam/versionless/organization/user.rb', line 41 def external_id @external_id end |
#id ⇒ Object
41 42 43 |
# File 'lib/twilio-ruby/rest/preview_iam/versionless/organization/user.rb', line 41 def id @id end |
#locale ⇒ Object
41 42 43 |
# File 'lib/twilio-ruby/rest/preview_iam/versionless/organization/user.rb', line 41 def locale @locale end |
#meta ⇒ Object
41 42 43 |
# File 'lib/twilio-ruby/rest/preview_iam/versionless/organization/user.rb', line 41 def @meta end |
#more_info ⇒ Object
41 42 43 |
# File 'lib/twilio-ruby/rest/preview_iam/versionless/organization/user.rb', line 41 def more_info @more_info end |
#name ⇒ Object
41 42 43 |
# File 'lib/twilio-ruby/rest/preview_iam/versionless/organization/user.rb', line 41 def name @name end |
#schemas ⇒ Object
41 42 43 |
# File 'lib/twilio-ruby/rest/preview_iam/versionless/organization/user.rb', line 41 def schemas @schemas end |
#scim_type ⇒ Object
41 42 43 |
# File 'lib/twilio-ruby/rest/preview_iam/versionless/organization/user.rb', line 41 def scim_type @scim_type end |
#status ⇒ Object
41 42 43 |
# File 'lib/twilio-ruby/rest/preview_iam/versionless/organization/user.rb', line 41 def status @status end |
#timezone ⇒ Object
41 42 43 |
# File 'lib/twilio-ruby/rest/preview_iam/versionless/organization/user.rb', line 41 def timezone @timezone end |
#user_name ⇒ Object
41 42 43 |
# File 'lib/twilio-ruby/rest/preview_iam/versionless/organization/user.rb', line 41 def user_name @user_name end |
Instance Method Details
#to_json(options = {}) ⇒ Object
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 |
# File 'lib/twilio-ruby/rest/preview_iam/versionless/organization/user.rb', line 60 def to_json( = {}) { "id": @id, "externalId": @external_id, "userName": @user_name, "displayName": @display_name, "name": @name, "emails": @emails, "active": @active, "locale": @locale, "timezone": @timezone, "schemas": @schemas, "meta": @meta, "detail": @detail, "scimType": @scim_type, "status": @status, "code": @code, "moreInfo": @more_info, }.to_json() end |