class Paperweight::AttachmentName
Converts a parent name to its respective component child names.
Attributes
name[R]
Public Class Methods
new(name)
click to toggle source
# File lib/paperweight/attachment_name.rb, line 8 def initialize(name) @name = name end
Public Instance Methods
after_download()
click to toggle source
# File lib/paperweight/attachment_name.rb, line 12 def after_download :"#{name}_after_download" end
processing()
click to toggle source
# File lib/paperweight/attachment_name.rb, line 16 def processing :"#{name}_processing" end
updated_at()
click to toggle source
# File lib/paperweight/attachment_name.rb, line 20 def updated_at :"#{name}_updated_at" end
url()
click to toggle source
# File lib/paperweight/attachment_name.rb, line 24 def url :"#{name}_url" end
url_attr()
click to toggle source
# File lib/paperweight/attachment_name.rb, line 32 def url_attr :"@#{name}_url" end
url_eq()
click to toggle source
# File lib/paperweight/attachment_name.rb, line 28 def url_eq :"#{name}_url=" end