Class: WorkOS::InvitationAcceptedData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::InvitationAcceptedData
- Defined in:
- lib/workos/user_management/invitation_accepted_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ object: :object, id: :id, email: :email, state: :state, accepted_at: :accepted_at, revoked_at: :revoked_at, expires_at: :expires_at, organization_id: :organization_id, inviter_user_id: :inviter_user_id, accepted_user_id: :accepted_user_id, created_at: :created_at, updated_at: :updated_at }.freeze
Instance Attribute Summary collapse
-
#accepted_at ⇒ Object
Returns the value of attribute accepted_at.
-
#accepted_user_id ⇒ Object
Returns the value of attribute accepted_user_id.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#email ⇒ Object
Returns the value of attribute email.
-
#expires_at ⇒ Object
Returns the value of attribute expires_at.
-
#id ⇒ Object
Returns the value of attribute id.
-
#inviter_user_id ⇒ Object
Returns the value of attribute inviter_user_id.
-
#object ⇒ Object
Returns the value of attribute object.
-
#organization_id ⇒ Object
Returns the value of attribute organization_id.
-
#revoked_at ⇒ Object
Returns the value of attribute revoked_at.
-
#state ⇒ Object
Returns the value of attribute state.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ InvitationAcceptedData
constructor
A new instance of InvitationAcceptedData.
Methods inherited from Types::BaseModel
Methods included from HashProvider
Constructor Details
#initialize(json) ⇒ InvitationAcceptedData
Returns a new instance of InvitationAcceptedData.
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/workos/user_management/invitation_accepted_data.rb', line 36 def initialize(json) hash = self.class.normalize(json) @object = hash[:object] @id = hash[:id] @email = hash[:email] @state = hash[:state] @accepted_at = hash[:accepted_at] @revoked_at = hash[:revoked_at] @expires_at = hash[:expires_at] @organization_id = hash[:organization_id] @inviter_user_id = hash[:inviter_user_id] @accepted_user_id = hash[:accepted_user_id] @created_at = hash[:created_at] @updated_at = hash[:updated_at] end |
Instance Attribute Details
#accepted_at ⇒ Object
Returns the value of attribute accepted_at.
22 23 24 |
# File 'lib/workos/user_management/invitation_accepted_data.rb', line 22 def accepted_at @accepted_at end |
#accepted_user_id ⇒ Object
Returns the value of attribute accepted_user_id.
22 23 24 |
# File 'lib/workos/user_management/invitation_accepted_data.rb', line 22 def accepted_user_id @accepted_user_id end |
#created_at ⇒ Object
Returns the value of attribute created_at.
22 23 24 |
# File 'lib/workos/user_management/invitation_accepted_data.rb', line 22 def created_at @created_at end |
#email ⇒ Object
Returns the value of attribute email.
22 23 24 |
# File 'lib/workos/user_management/invitation_accepted_data.rb', line 22 def email @email end |
#expires_at ⇒ Object
Returns the value of attribute expires_at.
22 23 24 |
# File 'lib/workos/user_management/invitation_accepted_data.rb', line 22 def expires_at @expires_at end |
#id ⇒ Object
Returns the value of attribute id.
22 23 24 |
# File 'lib/workos/user_management/invitation_accepted_data.rb', line 22 def id @id end |
#inviter_user_id ⇒ Object
Returns the value of attribute inviter_user_id.
22 23 24 |
# File 'lib/workos/user_management/invitation_accepted_data.rb', line 22 def inviter_user_id @inviter_user_id end |
#object ⇒ Object
Returns the value of attribute object.
22 23 24 |
# File 'lib/workos/user_management/invitation_accepted_data.rb', line 22 def object @object end |
#organization_id ⇒ Object
Returns the value of attribute organization_id.
22 23 24 |
# File 'lib/workos/user_management/invitation_accepted_data.rb', line 22 def organization_id @organization_id end |
#revoked_at ⇒ Object
Returns the value of attribute revoked_at.
22 23 24 |
# File 'lib/workos/user_management/invitation_accepted_data.rb', line 22 def revoked_at @revoked_at end |
#state ⇒ Object
Returns the value of attribute state.
22 23 24 |
# File 'lib/workos/user_management/invitation_accepted_data.rb', line 22 def state @state end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
22 23 24 |
# File 'lib/workos/user_management/invitation_accepted_data.rb', line 22 def updated_at @updated_at end |