Class: GustoEmbedded::Models::Shared::SalaryEstimate
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::SalaryEstimate
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/salary_estimate.rb
Overview
A salary estimate calculation for an S-Corp owner based on occupation, experience level, location, and business revenue.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(uuid:, created_at:, updated_at:, occupations:, employee_uuid: nil, annual_net_revenue: nil, zip_code: nil, employee_job_uuid: nil, result: nil, accepted_at: nil) ⇒ SalaryEstimate
constructor
A new instance of SalaryEstimate.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(uuid:, created_at:, updated_at:, occupations:, employee_uuid: nil, annual_net_revenue: nil, zip_code: nil, employee_job_uuid: nil, result: nil, accepted_at: nil) ⇒ SalaryEstimate
Returns a new instance of SalaryEstimate.
37 38 39 40 41 42 43 44 45 46 47 48 |
# File 'lib/gusto_embedded/models/shared/salary_estimate.rb', line 37 def initialize(uuid:, created_at:, updated_at:, occupations:, employee_uuid: nil, annual_net_revenue: nil, zip_code: nil, employee_job_uuid: nil, result: nil, accepted_at: nil) @uuid = uuid @created_at = created_at @updated_at = updated_at @occupations = occupations @employee_uuid = employee_uuid @annual_net_revenue = annual_net_revenue @zip_code = zip_code @employee_job_uuid = employee_job_uuid @result = result @accepted_at = accepted_at end |
Instance Method Details
#==(other) ⇒ Object
51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/gusto_embedded/models/shared/salary_estimate.rb', line 51 def ==(other) return false unless other.is_a? self.class return false unless @uuid == other.uuid return false unless @created_at == other.created_at return false unless @updated_at == other.updated_at return false unless @occupations == other.occupations return false unless @employee_uuid == other.employee_uuid return false unless @annual_net_revenue == other.annual_net_revenue return false unless @zip_code == other.zip_code return false unless @employee_job_uuid == other.employee_job_uuid return false unless @result == other.result return false unless @accepted_at == other.accepted_at true end |