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
1650 1651 1652 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1650 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
1638 1639 1640 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1638 def exam_id @exam_id end |
#exam_type ⇒ String
The type of the exam the token belongs to.
Corresponds to the JSON property examType
1648 1649 1650 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1648 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
1643 1644 1645 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1643 def token @token end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1655 1656 1657 1658 1659 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1655 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 |