Class: Google::Apis::PartnersV2::ExamToken

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/partners_v2/classes.rb,
generated/google/apis/partners_v2/representations.rb,
generated/google/apis/partners_v2/representations.rb

Overview

A token that allows a user to take an exam.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ExamToken

Returns a new instance of ExamToken



1544
1545
1546
# File 'generated/google/apis/partners_v2/classes.rb', line 1544

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#exam_idFixnum

The id of the exam the token is for. Corresponds to the JSON property examId

Returns:

  • (Fixnum)


1532
1533
1534
# File 'generated/google/apis/partners_v2/classes.rb', line 1532

def exam_id
  @exam_id
end

#exam_typeString

The type of the exam the token belongs to. Corresponds to the JSON property examType

Returns:

  • (String)


1542
1543
1544
# File 'generated/google/apis/partners_v2/classes.rb', line 1542

def exam_type
  @exam_type
end

#tokenString

The token, only present if the user has access to the exam. Corresponds to the JSON property token

Returns:

  • (String)


1537
1538
1539
# File 'generated/google/apis/partners_v2/classes.rb', line 1537

def token
  @token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1549
1550
1551
1552
1553
# File 'generated/google/apis/partners_v2/classes.rb', line 1549

def update!(**args)
  @exam_id = args[:exam_id] if args.key?(:exam_id)
  @token = args[:token] if args.key?(:token)
  @exam_type = args[:exam_type] if args.key?(:exam_type)
end