Class: MetadataPresenter::UploadedFile
- Inherits:
-
Object
- Object
- MetadataPresenter::UploadedFile
- Includes:
- ActiveModel::Model
- Defined in:
- app/models/metadata_presenter/uploaded_file.rb
Instance Attribute Summary collapse
-
#component ⇒ Object
Returns the value of attribute component.
-
#file ⇒ Object
Returns the value of attribute file.
Instance Method Summary collapse
Instance Attribute Details
#component ⇒ Object
Returns the value of attribute component.
4 5 6 |
# File 'app/models/metadata_presenter/uploaded_file.rb', line 4 def component @component end |
#file ⇒ Object
Returns the value of attribute file.
4 5 6 |
# File 'app/models/metadata_presenter/uploaded_file.rb', line 4 def file @file end |
Instance Method Details
#==(other) ⇒ Object
6 7 8 |
# File 'app/models/metadata_presenter/uploaded_file.rb', line 6 def ==(other) file == other.file && component == other.component end |
#error_name ⇒ Object
10 11 12 |
# File 'app/models/metadata_presenter/uploaded_file.rb', line 10 def error_name file.error_name if file.respond_to? :error_name end |