module Seek::SampleTemplates
Main entry point for generating templates
Constants
- VERSION
Public Class Methods
generate(sheet_name, sheet_index, columns, path)
click to toggle source
generates a template at the specific path
# File lib/seek/sample_templates.rb, line 8 def self.generate(sheet_name, sheet_index, columns, path) Seek::SampleTemplates::Generator.new( path, create_json(columns, sheet_index, sheet_name) ).generate end
Private Class Methods
create_json(columns, sheet_index, sheet_name)
click to toggle source
# File lib/seek/sample_templates.rb, line 14 def self.create_json(columns, sheet_index, sheet_name) { sheet_name: sheet_name, sheet_index: sheet_index, columns: columns.collect(&:as_json) }.to_json end