Class: Google::Apis::PartnersV2::ExamStatus

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 user's information on a specific 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) ⇒ ExamStatus

Returns a new instance of ExamStatus



1916
1917
1918
# File 'generated/google/apis/partners_v2/classes.rb', line 1916

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

Instance Attribute Details

#exam_typeString

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

Returns:

  • (String)


1903
1904
1905
# File 'generated/google/apis/partners_v2/classes.rb', line 1903

def exam_type
  @exam_type
end

#expirationString

Date this exam is due to expire. Corresponds to the JSON property expiration

Returns:

  • (String)


1893
1894
1895
# File 'generated/google/apis/partners_v2/classes.rb', line 1893

def expiration
  @expiration
end

#last_passedString

The date the user last passed this exam. Corresponds to the JSON property lastPassed

Returns:

  • (String)


1898
1899
1900
# File 'generated/google/apis/partners_v2/classes.rb', line 1898

def last_passed
  @last_passed
end

#passedBoolean Also known as: passed?

Whether this exam has been passed and not expired. Corresponds to the JSON property passed

Returns:

  • (Boolean)


1908
1909
1910
# File 'generated/google/apis/partners_v2/classes.rb', line 1908

def passed
  @passed
end

#takenString

The date the user last taken this exam. Corresponds to the JSON property taken

Returns:

  • (String)


1914
1915
1916
# File 'generated/google/apis/partners_v2/classes.rb', line 1914

def taken
  @taken
end

#warningBoolean Also known as: warning?

Whether this exam is in the state of warning. Corresponds to the JSON property warning

Returns:

  • (Boolean)


1887
1888
1889
# File 'generated/google/apis/partners_v2/classes.rb', line 1887

def warning
  @warning
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1921
1922
1923
1924
1925
1926
1927
1928
# File 'generated/google/apis/partners_v2/classes.rb', line 1921

def update!(**args)
  @warning = args[:warning] if args.key?(:warning)
  @expiration = args[:expiration] if args.key?(:expiration)
  @last_passed = args[:last_passed] if args.key?(:last_passed)
  @exam_type = args[:exam_type] if args.key?(:exam_type)
  @passed = args[:passed] if args.key?(:passed)
  @taken = args[:taken] if args.key?(:taken)
end