Class: WorkOS::UserIdentitiesGetItem

Inherits:
Types::BaseModel show all
Defined in:
lib/workos/user_management/user_identities_get_item.rb

Constant Summary collapse

HASH_ATTRS =
{
  idp_id: :idp_id,
  type: :type,
  provider: :provider
}.freeze

Instance Attribute Summary collapse

Attributes inherited from Types::BaseModel

#last_response

Instance Method Summary collapse

Methods inherited from Types::BaseModel

normalize

Methods included from HashProvider

#inspect, #to_h, #to_json

Constructor Details

#initialize(json) ⇒ UserIdentitiesGetItem

Returns a new instance of UserIdentitiesGetItem.



18
19
20
21
22
23
# File 'lib/workos/user_management/user_identities_get_item.rb', line 18

def initialize(json)
  hash = self.class.normalize(json)
  @idp_id = hash[:idp_id]
  @type = hash[:type]
  @provider = hash[:provider]
end

Instance Attribute Details

#idp_idObject

Returns the value of attribute idp_id.



13
14
15
# File 'lib/workos/user_management/user_identities_get_item.rb', line 13

def idp_id
  @idp_id
end

#providerObject

Returns the value of attribute provider.



13
14
15
# File 'lib/workos/user_management/user_identities_get_item.rb', line 13

def provider
  @provider
end

#typeObject

Returns the value of attribute type.



13
14
15
# File 'lib/workos/user_management/user_identities_get_item.rb', line 13

def type
  @type
end