Class: Google::Apis::JobsV2::ExtendedCompensationInfoCompensationEntry

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

Overview

Deprecated. See CompensationInfo. A compensation entry that represents one component of compensation, such as base pay, bonus, or other compensation type. Annualization: One compensation entry can be annualized if

  • it contains valid amount or range.
  • and its expected_units_per_year is set or can be derived. Its annualized range is determined as (amount or range) times expected_units_per_year.

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) ⇒ ExtendedCompensationInfoCompensationEntry

Returns a new instance of ExtendedCompensationInfoCompensationEntry.



1211
1212
1213
# File 'generated/google/apis/jobs_v2/classes.rb', line 1211

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

Instance Attribute Details

#amountGoogle::Apis::JobsV2::ExtendedCompensationInfoDecimal

Deprecated. See CompensationInfo. Decimal number. Corresponds to the JSON property amount



1175
1176
1177
# File 'generated/google/apis/jobs_v2/classes.rb', line 1175

def amount
  @amount
end

#descriptionString

Optional. Compensation description. Corresponds to the JSON property description

Returns:

  • (String)


1180
1181
1182
# File 'generated/google/apis/jobs_v2/classes.rb', line 1180

def description
  @description
end

#expected_units_per_yearGoogle::Apis::JobsV2::ExtendedCompensationInfoDecimal

Deprecated. See CompensationInfo. Decimal number. Corresponds to the JSON property expectedUnitsPerYear



1186
1187
1188
# File 'generated/google/apis/jobs_v2/classes.rb', line 1186

def expected_units_per_year
  @expected_units_per_year
end

#rangeGoogle::Apis::JobsV2::ExtendedCompensationInfoCompensationRange

Deprecated. See CompensationInfo. Compensation range. Corresponds to the JSON property range



1192
1193
1194
# File 'generated/google/apis/jobs_v2/classes.rb', line 1192

def range
  @range
end

#typeString

Required. Compensation type. Corresponds to the JSON property type

Returns:

  • (String)


1197
1198
1199
# File 'generated/google/apis/jobs_v2/classes.rb', line 1197

def type
  @type
end

#unitString

Optional. Frequency of the specified amount. Default is CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED. Corresponds to the JSON property unit

Returns:

  • (String)


1203
1204
1205
# File 'generated/google/apis/jobs_v2/classes.rb', line 1203

def unit
  @unit
end

#unspecifiedBoolean Also known as: unspecified?

Optional. Indicates compensation amount and range are unset. Corresponds to the JSON property unspecified

Returns:

  • (Boolean)


1208
1209
1210
# File 'generated/google/apis/jobs_v2/classes.rb', line 1208

def unspecified
  @unspecified
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1216
1217
1218
1219
1220
1221
1222
1223
1224
# File 'generated/google/apis/jobs_v2/classes.rb', line 1216

def update!(**args)
  @amount = args[:amount] if args.key?(:amount)
  @description = args[:description] if args.key?(:description)
  @expected_units_per_year = args[:expected_units_per_year] if args.key?(:expected_units_per_year)
  @range = args[:range] if args.key?(:range)
  @type = args[:type] if args.key?(:type)
  @unit = args[:unit] if args.key?(:unit)
  @unspecified = args[:unspecified] if args.key?(:unspecified)
end