Class: GustoEmbedded::Models::Shared::CompanyAttachmentCreateRequestBody

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

Overview

The binary payload of the file and the company attachment category.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(document:, category:) ⇒ CompanyAttachmentCreateRequestBody

Returns a new instance of CompanyAttachmentCreateRequestBody.



24
25
26
27
# File 'lib/gusto_embedded/models/shared/company_attachment_create_request_body.rb', line 24

def initialize(document:, category:)
  @document = document
  @category = category
end

Instance Method Details

#==(other) ⇒ Object



30
31
32
33
34
35
# File 'lib/gusto_embedded/models/shared/company_attachment_create_request_body.rb', line 30

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