Class: Smith::Tool::Invocation

Inherits:
Dry::Struct
  • Object
show all
Defined in:
lib/smith/tool/invocation.rb

Instance Method Summary collapse

Constructor Details

#initializeInvocation

Returns a new instance of Invocation.

Raises:

  • (ArgumentError)


19
20
21
22
23
24
# File 'lib/smith/tool/invocation.rb', line 19

def initialize(...)
  super
  raise ArgumentError, "tool invocation batch ordinal exceeds its batch size" if batch_ordinal > batch_size

  freeze
end