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



1252
1253
1254
# File 'generated/google/apis/jobs_v2/classes.rb', line 1252

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

Instance Attribute Details

#amountGoogle::Apis::JobsV2::ExtendedCompensationInfoDecimal

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



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

def amount
  @amount
end

#descriptionString

Optional. Compensation description. Corresponds to the JSON property description

Returns:

  • (String)


1218
1219
1220
# File 'generated/google/apis/jobs_v2/classes.rb', line 1218

def description
  @description
end

#expected_units_per_yearGoogle::Apis::JobsV2::ExtendedCompensationInfoDecimal

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



1224
1225
1226
# File 'generated/google/apis/jobs_v2/classes.rb', line 1224

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



1230
1231
1232
# File 'generated/google/apis/jobs_v2/classes.rb', line 1230

def range
  @range
end

#typeString

Required. Compensation type. Corresponds to the JSON property type

Returns:

  • (String)


1236
1237
1238
# File 'generated/google/apis/jobs_v2/classes.rb', line 1236

def type
  @type
end

#unitString

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

Returns:

  • (String)


1243
1244
1245
# File 'generated/google/apis/jobs_v2/classes.rb', line 1243

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)


1249
1250
1251
# File 'generated/google/apis/jobs_v2/classes.rb', line 1249

def unspecified
  @unspecified
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1257
1258
1259
1260
1261
1262
1263
1264
1265
# File 'generated/google/apis/jobs_v2/classes.rb', line 1257

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