module Tolliver::Models::NotificationAttachment
Public Instance Methods
read()
click to toggle source
# File lib/tolliver/models/notification_attachment.rb, line 33 def read if @data.nil? unless self.attachment.blank? @data = Base64.strict_decode64(self.attachment) rescue nil end unless self.url.blank? @data = open(self.url) { |f| f.read } end end @data end