class Action
Attributes
constraints[R]
Public Class Methods
new(h={})
click to toggle source
Calls superclass method
MacroObject::new
# File lib/ruby-macrodroid/actions.rb, line 72 def initialize(h={}) macro = h[:macro] h.delete :macro super(h) @constraints = @h[:constraint_list].map do |constraint| object(constraint.to_snake_case.merge(macro: macro)) end end
Public Instance Methods
invoke(h={})
click to toggle source
# File lib/ruby-macrodroid/actions.rb, line 84 def invoke(h={}) "%s/%s: %s" % [@group, @type, h.to_json] end