Class: WorkOS::CreateUserInviteOptions
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::CreateUserInviteOptions
- Defined in:
- lib/workos/user_management/create_user_invite_options.rb
Constant Summary collapse
- HASH_ATTRS =
{ email: :email, organization_id: :organization_id, role_slug: :role_slug, expires_in_days: :expires_in_days, inviter_user_id: :inviter_user_id, locale: :locale }.freeze
Instance Attribute Summary collapse
-
#email ⇒ Object
Returns the value of attribute email.
-
#expires_in_days ⇒ Object
Returns the value of attribute expires_in_days.
-
#inviter_user_id ⇒ Object
Returns the value of attribute inviter_user_id.
-
#locale ⇒ Object
Returns the value of attribute locale.
-
#organization_id ⇒ Object
Returns the value of attribute organization_id.
-
#role_slug ⇒ Object
Returns the value of attribute role_slug.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ CreateUserInviteOptions
constructor
A new instance of CreateUserInviteOptions.
Methods inherited from Types::BaseModel
Methods included from HashProvider
Constructor Details
#initialize(json) ⇒ CreateUserInviteOptions
Returns a new instance of CreateUserInviteOptions.
24 25 26 27 28 29 30 31 32 |
# File 'lib/workos/user_management/create_user_invite_options.rb', line 24 def initialize(json) hash = self.class.normalize(json) @email = hash[:email] @organization_id = hash[:organization_id] @role_slug = hash[:role_slug] @expires_in_days = hash[:expires_in_days] @inviter_user_id = hash[:inviter_user_id] @locale = hash[:locale] end |
Instance Attribute Details
#email ⇒ Object
Returns the value of attribute email.
16 17 18 |
# File 'lib/workos/user_management/create_user_invite_options.rb', line 16 def email @email end |
#expires_in_days ⇒ Object
Returns the value of attribute expires_in_days.
16 17 18 |
# File 'lib/workos/user_management/create_user_invite_options.rb', line 16 def expires_in_days @expires_in_days end |
#inviter_user_id ⇒ Object
Returns the value of attribute inviter_user_id.
16 17 18 |
# File 'lib/workos/user_management/create_user_invite_options.rb', line 16 def inviter_user_id @inviter_user_id end |
#locale ⇒ Object
Returns the value of attribute locale.
16 17 18 |
# File 'lib/workos/user_management/create_user_invite_options.rb', line 16 def locale @locale end |
#organization_id ⇒ Object
Returns the value of attribute organization_id.
16 17 18 |
# File 'lib/workos/user_management/create_user_invite_options.rb', line 16 def organization_id @organization_id end |
#role_slug ⇒ Object
Returns the value of attribute role_slug.
16 17 18 |
# File 'lib/workos/user_management/create_user_invite_options.rb', line 16 def role_slug @role_slug end |