Class: Paperdragon::Attachment

Inherits:
Object
  • Object
show all
Extended by:
Uber::InheritableAttr
Includes:
InstanceMethods, SanitizeUid
Defined in:
lib/paperdragon/attachment.rb

Overview

Override #build_uid / #rebuild_uid. Note that we only encode the UID when computing it the first time. It is then stored encoded and no escaping happens at any time after that. You may use options. only saves metadata, does not know about model. Attachment is a builder for File and knows about metadata. It is responsible for creating UID if metadata is empty.

Defined Under Namespace

Modules: InstanceMethods, SanitizeUid

Instance Attribute Summary

Attributes included from InstanceMethods

#metadata

Method Summary

Methods included from SanitizeUid

#sanitize, #uid_from

Methods included from InstanceMethods

#[], #exists?, #initialize, #rebuild_uid, #task, #uid_from