Class: Moov::Models::Components::FileUploadMetadata
- Inherits:
-
Object
- Object
- Moov::Models::Components::FileUploadMetadata
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/fileuploadmetadata.rb
Overview
Additional metadata to be stored with the file.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(representative_id: nil, comment: nil) ⇒ FileUploadMetadata
constructor
A new instance of FileUploadMetadata.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(representative_id: nil, comment: nil) ⇒ FileUploadMetadata
Returns a new instance of FileUploadMetadata.
21 22 23 24 |
# File 'lib/moov/models/components/fileuploadmetadata.rb', line 21 def initialize(representative_id: nil, comment: nil) @representative_id = representative_id @comment = comment end |
Instance Method Details
#==(other) ⇒ Object
27 28 29 30 31 32 |
# File 'lib/moov/models/components/fileuploadmetadata.rb', line 27 def ==(other) return false unless other.is_a? self.class return false unless @representative_id == other.representative_id return false unless @comment == other.comment true end |