Class: Google::Apis::JobsV2::CompensationInfo

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

Job compensation details.

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

Returns a new instance of CompensationInfo



637
638
639
# File 'generated/google/apis/jobs_v2/classes.rb', line 637

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

Instance Attribute Details

#amountGoogle::Apis::JobsV2::Money

Represents an amount of money with its currency type. Corresponds to the JSON property amount



599
600
601
# File 'generated/google/apis/jobs_v2/classes.rb', line 599

def amount
  @amount
end

#annualized_base_compensation_rangeGoogle::Apis::JobsV2::CompensationRange

Compensation range. Corresponds to the JSON property annualizedBaseCompensationRange



604
605
606
# File 'generated/google/apis/jobs_v2/classes.rb', line 604

def annualized_base_compensation_range
  @annualized_base_compensation_range
end

#annualized_total_compensation_rangeGoogle::Apis::JobsV2::CompensationRange

Compensation range. Corresponds to the JSON property annualizedTotalCompensationRange



609
610
611
# File 'generated/google/apis/jobs_v2/classes.rb', line 609

def annualized_total_compensation_range
  @annualized_total_compensation_range
end

#entriesArray<Google::Apis::JobsV2::CompensationEntry>

Optional. Job compensation information. At most one entry can be of type CompensationInfo.CompensationType.BASE, which is referred as ** base compensation entry ** for the job. Corresponds to the JSON property entries



618
619
620
# File 'generated/google/apis/jobs_v2/classes.rb', line 618

def entries
  @entries
end

#maxGoogle::Apis::JobsV2::Money

Represents an amount of money with its currency type. Corresponds to the JSON property max



623
624
625
# File 'generated/google/apis/jobs_v2/classes.rb', line 623

def max
  @max
end

#minGoogle::Apis::JobsV2::Money

Represents an amount of money with its currency type. Corresponds to the JSON property min



628
629
630
# File 'generated/google/apis/jobs_v2/classes.rb', line 628

def min
  @min
end

#typeString

Deprecated. Use entries instead. Optional. Type of job compensation. Corresponds to the JSON property type

Returns:

  • (String)


635
636
637
# File 'generated/google/apis/jobs_v2/classes.rb', line 635

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



642
643
644
645
646
647
648
649
650
# File 'generated/google/apis/jobs_v2/classes.rb', line 642

def update!(**args)
  @amount = args[:amount] if args.key?(:amount)
  @annualized_base_compensation_range = args[:annualized_base_compensation_range] if args.key?(:annualized_base_compensation_range)
  @annualized_total_compensation_range = args[:annualized_total_compensation_range] if args.key?(:annualized_total_compensation_range)
  @entries = args[:entries] if args.key?(:entries)
  @max = args[:max] if args.key?(:max)
  @min = args[:min] if args.key?(:min)
  @type = args[:type] if args.key?(:type)
end