Class: Google::Apis::PartnersV2::ExamToken
- Inherits:
-
Object
- Object
- Google::Apis::PartnersV2::ExamToken
- 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
-
#exam_id ⇒ Fixnum
The id of the exam the token is for.
-
#exam_type ⇒ String
The type of the exam the token belongs to.
-
#token ⇒ String
The token, only present if the user has access to the exam.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ExamToken
constructor
A new instance of ExamToken.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ExamToken
Returns a new instance of ExamToken
1552 1553 1554 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1552 def initialize(**args) update!(**args) end |
Instance Attribute Details
#exam_id ⇒ Fixnum
The id of the exam the token is for.
Corresponds to the JSON property examId
1550 1551 1552 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1550 def exam_id @exam_id end |
#exam_type ⇒ String
The type of the exam the token belongs to.
Corresponds to the JSON property examType
1545 1546 1547 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1545 def exam_type @exam_type end |
#token ⇒ String
The token, only present if the user has access to the exam.
Corresponds to the JSON property token
1540 1541 1542 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1540 def token @token end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1557 1558 1559 1560 1561 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1557 def update!(**args) @token = args[:token] if args.key?(:token) @exam_type = args[:exam_type] if args.key?(:exam_type) @exam_id = args[:exam_id] if args.key?(:exam_id) end |