class Pakyow::Application::Behavior::Operations::Lookup

Public Class Methods

new(operations:, app:) click to toggle source
# File lib/pakyow/application/behavior/operations.rb, line 14
def initialize(operations:, app:)
  operations.each do |operation|
    define_singleton_method operation.__object_name.name do |values = {}, &block|
      (block ? Class.new(operation, &block) : operation).new(app: app, **values).perform
    end
  end
end