Class: GustoEmbedded::Models::Operations::PostV1SandboxGenerateW2RequestBody

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/gusto_embedded/models/operations/post_v1_sandbox_generate_w2_requestbody.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(employee_id:, year: nil) ⇒ PostV1SandboxGenerateW2RequestBody

Returns a new instance of PostV1SandboxGenerateW2RequestBody.



22
23
24
25
# File 'lib/gusto_embedded/models/operations/post_v1_sandbox_generate_w2_requestbody.rb', line 22

def initialize(employee_id:, year: nil)
  @employee_id = employee_id
  @year = year
end

Instance Method Details

#==(other) ⇒ Object



28
29
30
31
32
33
# File 'lib/gusto_embedded/models/operations/post_v1_sandbox_generate_w2_requestbody.rb', line 28

def ==(other)
  return false unless other.is_a? self.class
  return false unless @employee_id == other.employee_id
  return false unless @year == other.year
  true
end