Class: WorkOS::RadarChallengeCreatedData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::RadarChallengeCreatedData
- 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
-
#email ⇒ Object
Returns the value of attribute email.
-
#radar_challenge_id ⇒ Object
Returns the value of attribute radar_challenge_id.
-
#type ⇒ Object
Returns the value of attribute type.
-
#user_id ⇒ Object
Returns the value of attribute user_id.
Instance Method Summary collapse
-
#initialize(json) ⇒ RadarChallengeCreatedData
constructor
A new instance of RadarChallengeCreatedData.
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
#email ⇒ Object
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_id ⇒ Object
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 |
#type ⇒ Object
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_id ⇒ Object
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 |