Class: Ddr::FileTools::Command

Inherits:
Object
  • Object
show all
Defined in:
lib/ddr/filetools/command.rb

Direct Known Subclasses

MetadataCommand, OcrCommand, TextCommand

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(provider) ⇒ Command

Returns a new instance of Command.



7
8
9
# File 'lib/ddr/filetools/command.rb', line 7

def initialize(provider)
  @provider = provider
end

Instance Attribute Details

#providerObject (readonly)

Returns the value of attribute provider.



5
6
7
# File 'lib/ddr/filetools/command.rb', line 5

def provider
  @provider
end

Instance Method Details

#call(file_path) ⇒ Object

Raises:

  • (NotImplementedError)


11
12
13
# File 'lib/ddr/filetools/command.rb', line 11

def call(file_path)
  raise NotImplementedError, "Subclasses must implement `call`."
end