Class: GustoEmbedded::Models::Shared::CompanyAttachment
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::CompanyAttachment
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/company_attachment.rb
Overview
The company attachment
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(uuid:, name:, category:, upload_time:) ⇒ CompanyAttachment
constructor
A new instance of CompanyAttachment.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(uuid:, name:, category:, upload_time:) ⇒ CompanyAttachment
Returns a new instance of CompanyAttachment.
29 30 31 32 33 34 |
# File 'lib/gusto_embedded/models/shared/company_attachment.rb', line 29 def initialize(uuid:, name:, category:, upload_time:) @uuid = uuid @name = name @category = category @upload_time = upload_time end |
Instance Method Details
#==(other) ⇒ Object
37 38 39 40 41 42 43 44 |
# File 'lib/gusto_embedded/models/shared/company_attachment.rb', line 37 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 @category == other.category return false unless @upload_time == other.upload_time true end |