Class: Progstr::Filer::Attachment::EmptyAttachment

Inherits:
Progstr::Filer::Attachment show all
Defined in:
lib/filer/attachment.rb

Instance Attribute Summary

Attributes inherited from Progstr::Filer::Attachment

#attribute, #file, #id, #pre_validated, #uploader_class

Instance Method Summary collapse

Methods inherited from Progstr::Filer::Attachment

empty, file_id, from_file, from_id, from_json, generate_id, #mark_uploaded!, #public_url, #uploaded?, #url

Instance Method Details

#blank?Boolean

Returns:

  • (Boolean)


27
28
29
# File 'lib/filer/attachment.rb', line 27

def blank?
  true
end

#display_hashObject



39
40
41
# File 'lib/filer/attachment.rb', line 39

def display_hash
  nil
end

#display_jsonObject



42
43
44
# File 'lib/filer/attachment.rb', line 42

def display_json
  nil
end

#extensionObject



36
37
38
# File 'lib/filer/attachment.rb', line 36

def extension
  ""
end

#need_upload?Boolean

Returns:

  • (Boolean)


45
46
47
# File 'lib/filer/attachment.rb', line 45

def need_upload?
  false
end

#pathObject



33
34
35
# File 'lib/filer/attachment.rb', line 33

def path
  ""
end

#sizeObject



30
31
32
# File 'lib/filer/attachment.rb', line 30

def size
  0
end