Class: MetadataPresenter::UploadedFile

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Model
Defined in:
app/models/metadata_presenter/uploaded_file.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#componentObject

Returns the value of attribute component.



4
5
6
# File 'app/models/metadata_presenter/uploaded_file.rb', line 4

def component
  @component
end

#fileObject

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_nameObject



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