Class: Spree::AgentTools::ImportTool

Inherits:
Spree::AgentTool show all
Defined in:
app/tools/spree/agent_tools/import_tool.rb

Overview

Shared behaviour for the tools that walk a CSV import through its mapping step.

They all have to find an import the same way — store-scoped, addressed by whichever of its prefixed id or its number the merchant said aloud — and getting that lookup right is the whole of their tenancy story, so it lives in one place rather than three.

Constant Summary

Constants inherited from Spree::AgentTool

Spree::AgentTool::PARENT_ID_DESCRIPTION

Instance Attribute Summary

Attributes inherited from Spree::AgentTool

#context

Method Summary

Methods inherited from Spree::AgentTool

additive!, audience, #call, description, destructive?, #initialize, input_schema, mutating!, mutating?, param, params, permission, #permitted?, #summary, tool_name, #unknown_resource

Constructor Details

This class inherits a constructor from Spree::AgentTool