Class: WorkOS::CreateConnectionStandardAttributes

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/workos/sso/create_connection_standard_attributes.rb

Constant Summary collapse

HASH_ATTRS =
{
  idp_id: :idp_id,
  email: :email,
  first_name: :first_name,
  last_name: :last_name,
  groups: :groups,
  name: :name
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ CreateConnectionStandardAttributes

Returns a new instance of CreateConnectionStandardAttributes.



24
25
26
27
28
29
30
31
32
# File 'lib/workos/sso/create_connection_standard_attributes.rb', line 24

def initialize(json)
  hash = self.class.normalize(json)
  @idp_id = hash[:idp_id]
  @email = hash[:email]
  @first_name = hash[:first_name]
  @last_name = hash[:last_name]
  @groups = hash[:groups]
  @name = hash[:name]
end

Instance Attribute Details

#emailObject

Returns the value of attribute email.



16
17
18
# File 'lib/workos/sso/create_connection_standard_attributes.rb', line 16

def email
  @email
end

#first_nameObject

Returns the value of attribute first_name.



16
17
18
# File 'lib/workos/sso/create_connection_standard_attributes.rb', line 16

def first_name
  @first_name
end

#groupsObject

Returns the value of attribute groups.



16
17
18
# File 'lib/workos/sso/create_connection_standard_attributes.rb', line 16

def groups
  @groups
end

#idp_idObject

Returns the value of attribute idp_id.



16
17
18
# File 'lib/workos/sso/create_connection_standard_attributes.rb', line 16

def idp_id
  @idp_id
end

#last_nameObject

Returns the value of attribute last_name.



16
17
18
# File 'lib/workos/sso/create_connection_standard_attributes.rb', line 16

def last_name
  @last_name
end

#nameObject

Returns the value of attribute name.



16
17
18
# File 'lib/workos/sso/create_connection_standard_attributes.rb', line 16

def name
  @name
end