Class: GustoEmbedded::Models::Shared::Form1099

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(uuid:, name: nil, title: nil, description: nil, draft: nil, requires_signing: nil, contractor_uuid: nil, year: nil, quarter: nil, document_content_type: nil) ⇒ Form1099

Returns a new instance of Form1099.



37
38
39
40
41
42
43
44
45
46
47
48
# File 'lib/gusto_embedded/models/shared/form_1099.rb', line 37

def initialize(uuid:, name: nil, title: nil, description: nil, draft: nil, requires_signing: nil, contractor_uuid: nil, year: nil, quarter: nil, document_content_type: nil)
  @uuid = uuid
  @name = name
  @title = title
  @description = description
  @draft = draft
  @requires_signing = requires_signing
  @contractor_uuid = contractor_uuid
  @year = year
  @quarter = quarter
  @document_content_type = document_content_type
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/form_1099.rb', line 51

def ==(other)
  return false unless other.is_a? self.class
  return false unless @uuid == other.uuid
  return false unless @name == other.name
  return false unless @title == other.title
  return false unless @description == other.description
  return false unless @draft == other.draft
  return false unless @requires_signing == other.requires_signing
  return false unless @contractor_uuid == other.contractor_uuid
  return false unless @year == other.year
  return false unless @quarter == other.quarter
  return false unless @document_content_type == other.document_content_type
  true
end