Class: KCommercial::Resources::HashAsset

Inherits:
Asset
  • Object
show all
Defined in:
lib/KCommercialPipeline/core/resource/source/asset.rb

Instance Attribute Summary

Attributes inherited from Asset

#name, #root_path, #trait_rows, #valid

Instance Method Summary collapse

Methods inherited from Asset

#initialize

Constructor Details

This class inherits a constructor from KCommercial::Resources::Asset

Instance Method Details

#decode_resource(resource) ⇒ Object



76
77
78
79
# File 'lib/KCommercialPipeline/core/resource/source/asset.rb', line 76

def decode_resource(resource)
  return unless resource.is_a? Hash
  resource
end