Module: Kiba::Extend::Destinations::Destinationable
- Includes:
- Registry::Fileable
- Defined in:
- lib/kiba/extend/destinations/destinationable.rb
Overview
Mix-in module for extending destinations so they can be set up in jobs
Instance Method Summary collapse
-
#as_source_class ⇒ Object
-
#is_destination? ⇒ Boolean
True.
-
#special_options ⇒ Object
Array of defined special options for class.
Methods included from Registry::Fileable
#default_args, #default_file_options, #labeled_options, #options_key, #path_key, #requires_path?
Instance Method Details
#as_source_class ⇒ Object
17 18 19 20 |
# File 'lib/kiba/extend/destinations/destinationable.rb', line 17 def as_source_class raise NotImplementedError, ":as_source_class must be defined in extending class" end |
#is_destination? ⇒ Boolean
Returns true.
23 24 25 |
# File 'lib/kiba/extend/destinations/destinationable.rb', line 23 def is_destination? true end |
#special_options ⇒ Object
Returns Array of defined special options for class.
28 29 30 31 |
# File 'lib/kiba/extend/destinations/destinationable.rb', line 28 def raise NotImplementedError, ":special_options must be defined in extending class" end |