module Actions::Action::ClassMethods
Public Instance Methods
call(context={})
click to toggle source
# File lib/actions/action.rb, line 21 def call(context={}) new(context).call end
input(attribute, type: Object, required: false, mutable: false)
click to toggle source
# File lib/actions/action.rb, line 25 def input(attribute, type: Object, required: false, mutable: false) self.inputs[attribute.to_s] = { type: type, mutable: mutable, required: required } end
inputs()
click to toggle source
# File lib/actions/action.rb, line 33 def inputs @inputs ||= {} end
output(attribute, type: Object)
click to toggle source
# File lib/actions/action.rb, line 29 def output(attribute, type: Object) self.outputs[attribute.to_s] = { type: type } end
outputs()
click to toggle source
# File lib/actions/action.rb, line 37 def outputs @outputs ||= {} end