Class: Cardio::Mod::Sow
- Inherits:
-
Object
- Object
- Cardio::Mod::Sow
- Defined in:
- lib/cardio/mod/sow.rb
Overview
The Sow class is for exporting data to mods’ data directories so that they can be used as seed data when the mod is installed.
docs.google.com/document/d/13K_ynFwfpHwc3t5gnLeAkZJZHco1wK063nJNYwU8qfc/edit#
Instance Method Summary collapse
-
#initialize(**args) ⇒ Sow
constructor
A new instance of Sow.
-
#out ⇒ Object
if output mod given,.
Constructor Details
#initialize(**args) ⇒ Sow
Returns a new instance of Sow.
8 9 10 11 12 13 14 15 |
# File 'lib/cardio/mod/sow.rb', line 8 def initialize **args @mod = args[:mod] @name = args[:name] @cql = args[:cql] @podtype = args[:podtype] || (Rails.env.test? ? :test : :real) @items = args[:items] @field_tags = args[:field_tags] end |