Class: Google::Apis::JobsV2::CompensationEntry
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::JobsV2::CompensationEntry
 
- 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
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
- 
  
    
      #amount  ⇒ Google::Apis::JobsV2::Money 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Represents an amount of money with its currency type. 
- 
  
    
      #description  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Optional. 
- 
  
    
      #expected_units_per_year  ⇒ Float 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Optional. 
- 
  
    
      #range  ⇒ Google::Apis::JobsV2::CompensationRange 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Compensation range. 
- 
  
    
      #type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Required. 
- 
  
    
      #unit  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Optional. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ CompensationEntry 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of CompensationEntry. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ CompensationEntry
Returns a new instance of CompensationEntry
| 476 477 478 | # File 'generated/google/apis/jobs_v2/classes.rb', line 476 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#amount ⇒ Google::Apis::JobsV2::Money
Represents an amount of money with its currency type.
Corresponds to the JSON property amount
| 435 436 437 | # File 'generated/google/apis/jobs_v2/classes.rb', line 435 def amount @amount end | 
#description ⇒ String
Optional.
Compensation description.  For example, could
indicate equity terms or provide additional context to an estimated
bonus.
Corresponds to the JSON property description
| 443 444 445 | # File 'generated/google/apis/jobs_v2/classes.rb', line 443 def description @description end | 
#expected_units_per_year ⇒ Float
Optional. Expected number of units paid each year. If not specified, when Job.employment_types is FULLTIME, a default value is inferred based on unit. Default values:
- HOURLY: 2080
- DAILY: 260
- WEEKLY: 52
- MONTHLY: 12
- ANNUAL: 1
Corresponds to the JSON property expectedUnitsPerYear
| 456 457 458 | # File 'generated/google/apis/jobs_v2/classes.rb', line 456 def expected_units_per_year @expected_units_per_year end | 
#range ⇒ Google::Apis::JobsV2::CompensationRange
Compensation range.
Corresponds to the JSON property range
| 461 462 463 | # File 'generated/google/apis/jobs_v2/classes.rb', line 461 def range @range end | 
#type ⇒ String
Required.
Compensation type.
Corresponds to the JSON property type
| 467 468 469 | # File 'generated/google/apis/jobs_v2/classes.rb', line 467 def type @type end | 
#unit ⇒ String
Optional.
Frequency of the specified amount.
Default is CompensationUnit.OTHER_COMPENSATION_UNIT.
Corresponds to the JSON property unit
| 474 475 476 | # File 'generated/google/apis/jobs_v2/classes.rb', line 474 def unit @unit end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 481 482 483 484 485 486 487 488 | # File 'generated/google/apis/jobs_v2/classes.rb', line 481 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) end |