Sha256: c9373e2241052b3b2f8b82aa8292d33823c2bbd8004f9453cf75ccbf53e533f5
Contents?: true
Size: 382 Bytes
Versions: 43
Compression:
Stored size: 382 Bytes
Contents
require "edition" require "attachable" class VideoEdition < Edition include Attachable field :video_url, type: String field :video_summary, type: String field :body, type: String GOVSPEAK_FIELDS = [:body] attaches :caption_file def has_video? video_url.present? end def whole_body [video_summary, video_url, body].join("\n\n") end end
Version data entries
43 entries across 43 versions & 1 rubygems