Method: WorkOS::EmailVerification#initialize
- Defined in:
- lib/workos/email_verification.rb
#initialize(json) ⇒ EmailVerification
Returns a new instance of EmailVerification.
13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/workos/email_verification.rb', line 13 def initialize(json) hash = JSON.parse(json, symbolize_names: true) @id = hash[:id] @user_id = hash[:user_id] @email = hash[:email] @code = hash[:code] @expires_at = hash[:expires_at] @created_at = hash[:created_at] @updated_at = hash[:updated_at] end |