Class: NaranyaEcm::MediaProcess

Inherits:
Object
  • Object
show all
Includes:
Behaviors::Timestampable
Defined in:
lib/naranya_ecm/models/media_process.rb

Instance Method Summary collapse

Instance Method Details

#template_hashObject



22
23
24
# File 'lib/naranya_ecm/models/media_process.rb', line 22

def template_hash
  ActiveSupport::JSON.decode template
end

#template_hash=(hash = {}) ⇒ Object



26
27
28
# File 'lib/naranya_ecm/models/media_process.rb', line 26

def template_hash=(hash = {})
  self.template = ActiveSupport::JSON.encode hash
end