Class: WorkOS::UserInvite

Inherits:
Types::BaseModel show all
Defined in:
lib/workos/user_management/user_invite.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,
  token: :token,
  accept_invitation_url: :accept_invitation_url
}.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) ⇒ UserInvite

Returns a new instance of UserInvite.



40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# File 'lib/workos/user_management/user_invite.rb', line 40

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]
  @token = hash[:token]
  @accept_invitation_url = hash[:accept_invitation_url]
end

Instance Attribute Details

#accept_invitation_urlObject

Returns the value of attribute accept_invitation_url.



24
25
26
# File 'lib/workos/user_management/user_invite.rb', line 24

def accept_invitation_url
  @accept_invitation_url
end

#accepted_atObject

Returns the value of attribute accepted_at.



24
25
26
# File 'lib/workos/user_management/user_invite.rb', line 24

def accepted_at
  @accepted_at
end

#accepted_user_idObject

Returns the value of attribute accepted_user_id.



24
25
26
# File 'lib/workos/user_management/user_invite.rb', line 24

def accepted_user_id
  @accepted_user_id
end

#created_atObject

Returns the value of attribute created_at.



24
25
26
# File 'lib/workos/user_management/user_invite.rb', line 24

def created_at
  @created_at
end

#emailObject

Returns the value of attribute email.



24
25
26
# File 'lib/workos/user_management/user_invite.rb', line 24

def email
  @email
end

#expires_atObject

Returns the value of attribute expires_at.



24
25
26
# File 'lib/workos/user_management/user_invite.rb', line 24

def expires_at
  @expires_at
end

#idObject

Returns the value of attribute id.



24
25
26
# File 'lib/workos/user_management/user_invite.rb', line 24

def id
  @id
end

#inviter_user_idObject

Returns the value of attribute inviter_user_id.



24
25
26
# File 'lib/workos/user_management/user_invite.rb', line 24

def inviter_user_id
  @inviter_user_id
end

#objectObject

Returns the value of attribute object.



24
25
26
# File 'lib/workos/user_management/user_invite.rb', line 24

def object
  @object
end

#organization_idObject

Returns the value of attribute organization_id.



24
25
26
# File 'lib/workos/user_management/user_invite.rb', line 24

def organization_id
  @organization_id
end

#revoked_atObject

Returns the value of attribute revoked_at.



24
25
26
# File 'lib/workos/user_management/user_invite.rb', line 24

def revoked_at
  @revoked_at
end

#stateObject

Returns the value of attribute state.



24
25
26
# File 'lib/workos/user_management/user_invite.rb', line 24

def state
  @state
end

#tokenObject

Returns the value of attribute token.



24
25
26
# File 'lib/workos/user_management/user_invite.rb', line 24

def token
  @token
end

#updated_atObject

Returns the value of attribute updated_at.



24
25
26
# File 'lib/workos/user_management/user_invite.rb', line 24

def updated_at
  @updated_at
end