Class: WorkOS::CreateConnectionStandardAttributes
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::CreateConnectionStandardAttributes
- 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
-
#email ⇒ Object
Returns the value of attribute email.
-
#first_name ⇒ Object
Returns the value of attribute first_name.
-
#groups ⇒ Object
Returns the value of attribute groups.
-
#idp_id ⇒ Object
Returns the value of attribute idp_id.
-
#last_name ⇒ Object
Returns the value of attribute last_name.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(json) ⇒ CreateConnectionStandardAttributes
constructor
A new instance of CreateConnectionStandardAttributes.
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
#email ⇒ Object
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_name ⇒ Object
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 |
#groups ⇒ Object
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_id ⇒ Object
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_name ⇒ Object
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 |
#name ⇒ Object
Returns the value of attribute name.
16 17 18 |
# File 'lib/workos/sso/create_connection_standard_attributes.rb', line 16 def name @name end |