class ApiService::Action
Public Class Methods
new(name, options, to_perform)
click to toggle source
Calls superclass method
# File lib/api_service/action.rb, line 5 def initialize(name, options, to_perform) super(name, options) @to_perform = to_perform end
Public Instance Methods
perform(params, state)
click to toggle source
# File lib/api_service/action.rb, line 10 def perform(params, state) @to_perform.call(params, state) end