module Convection::Model::Mixin::Taggable
Add tag helpers to taddable resources
Public Instance Methods
immutable_metadata(purpose, target = '')
click to toggle source
Helper for Asgard
# File lib/convection/model/mixin/taggable.rb, line 33 def immutable_metadata(purpose, target = '') tag('immutable_metadata', JSON.generate( :purpose => purpose, :target => target )) end
tag(key, value)
click to toggle source
# File lib/convection/model/mixin/taggable.rb, line 28 def tag(key, value) tags[key] = value end