Class: Kiba::Extend::Registry::RegisteredSource

Inherits:
RegisteredFile show all
Includes:
RequirableFile
Defined in:
lib/kiba/extend/registry/registered_source.rb

Overview

Value object representing a RegistryEntry being used as a job source

Since:

  • 2.2.0

Instance Attribute Summary

Attributes inherited from RegisteredFile

#data, #desc, #dest_class, #dest_opt, #dest_special_opts, #key, #lookup_on, #path, #src_opt, #supplied

Instance Method Summary collapse

Methods included from RequirableFile

#required

Methods inherited from RegisteredFile

#initialize, #src_class

Constructor Details

This class inherits a constructor from Kiba::Extend::Registry::RegisteredFile

Instance Method Details

#argsHash

Arguments for calling Kiba Source class

Returns:

  • (Hash)

Since:

  • 2.2.0



25
26
27
# File 'lib/kiba/extend/registry/registered_source.rb', line 25

def args
  {src_class.path_key => path}.merge(src_opts)
end

#klassObject

Since:

  • 2.2.0



29
30
31
# File 'lib/kiba/extend/registry/registered_source.rb', line 29

def klass
  src_class
end