Sha256: ee04c71a3fc3b60159a38b5620c7382ca716463a254486c6b03465150e76ba44
Contents?: true
Size: 538 Bytes
Versions: 3
Compression:
Stored size: 538 Bytes
Contents
# frozen_string_literal: true module Paperweight # Converts a parent name to its respective component child names. class AttachmentName attr_reader :name def initialize(name) @name = name end def after_download :"#{name}_after_download" end def processing :"#{name}_processing" end def updated_at :"#{name}_updated_at" end def url :"#{name}_url" end def url_eq :"#{name}_url=" end def url_attr :"@#{name}_url" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
paperweight-1.2.1 | lib/paperweight/attachment_name.rb |
paperweight-1.2.0 | lib/paperweight/attachment_name.rb |
paperweight-1.1.0 | lib/paperweight/attachment_name.rb |