module ServiceActor::Collectionable::PrependedMethods

Public Instance Methods

_call() click to toggle source
Calls superclass method
# File lib/service_actor/collectionable.rb, line 18
def _call
  self.class.inputs.each do |key, options|
    next unless options[:in]

    next if options[:in].include?(result[key])

    raise ArgumentError,
          "Input #{key} must be included in #{options[:in].inspect}"
  end

  super
end