Class: Cardio::Mod::Sow
- Includes:
- CardSource, YamlDump
- Defined in:
- card/lib/cardio/mod/sow.rb,
card/lib/cardio/mod/sow/yaml_dump.rb,
card/lib/cardio/mod/sow/card_source.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.
https://docs.google.com/document/d/13K_ynFwfpHwc3t5gnLeAkZJZHco1wK063nJNYwU8qfc/edit#
Defined Under Namespace
Modules: CardSource, YamlDump
Instance Method Summary collapse
-
#initialize(**args) ⇒ Sow
constructor
A new instance of Sow.
-
#out ⇒ Object
if output mod given,.
Methods included from CardSource
#cards, #cards_from_name, #field_tag_marks, #item_cards, #main_cards, #new_data_from_cards, #require_card
Methods included from YamlDump
Constructor Details
#initialize(**args) ⇒ Sow
Returns a new instance of Sow.
11 12 13 14 15 16 17 18 19 |
# File 'card/lib/cardio/mod/sow.rb', line 11 def initialize **args @mod = args[:mod] @name = args[:name] @cql = args[:cql] @url = args[:url] @podtype = args[:podtype] || (Rails.env.test? ? :test : :real) @items = args[:items] @field_tags = args[:field_tags] end |