Class: WorkOS::RadarChallengeCreatedData

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/workos/shared/radar_challenge_created_data.rb

Constant Summary collapse

HASH_ATTRS =
{
  type: :type,
  radar_challenge_id: :radar_challenge_id,
  user_id: :user_id,
  email: :email
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ RadarChallengeCreatedData

Returns a new instance of RadarChallengeCreatedData.



20
21
22
23
24
25
26
# File 'lib/workos/shared/radar_challenge_created_data.rb', line 20

def initialize(json)
  hash = self.class.normalize(json)
  @type = hash[:type]
  @radar_challenge_id = hash[:radar_challenge_id]
  @user_id = hash[:user_id]
  @email = hash[:email]
end

Instance Attribute Details

#emailObject

Returns the value of attribute email.



14
15
16
# File 'lib/workos/shared/radar_challenge_created_data.rb', line 14

def email
  @email
end

#radar_challenge_idObject

Returns the value of attribute radar_challenge_id.



14
15
16
# File 'lib/workos/shared/radar_challenge_created_data.rb', line 14

def radar_challenge_id
  @radar_challenge_id
end

#typeObject

Returns the value of attribute type.



14
15
16
# File 'lib/workos/shared/radar_challenge_created_data.rb', line 14

def type
  @type
end

#user_idObject

Returns the value of attribute user_id.



14
15
16
# File 'lib/workos/shared/radar_challenge_created_data.rb', line 14

def user_id
  @user_id
end